Coder Social home page Coder Social logo

Comments (6)

randy3k avatar randy3k commented on July 17, 2024

I don't have any experience in setting up ssh on Windows. Perhaps you could post the question on https://forum.sublimetext.com/. People there might know better than me in this regrads.

from terminus.

mercurykd avatar mercurykd commented on July 17, 2024

And if not windows? Just how do I properly configure the shell parameters so that when I open it I immediately execute a command, for example, connecting to a remote terminal?

from terminus.

randy3k avatar randy3k commented on July 17, 2024

Assume that you have your ssh key setup correctly, the following should suffice.

        {
            "name": "SSH to server",
            "cmd": ["ssh", "[email protected]"],
        },

from terminus.

mercurykd avatar mercurykd commented on July 17, 2024

I use git-bash

{
    "cmd": "sh.exe",
    "default": true,
    "enable": true,
    "env":
    {
        "LANG": "ru_RU.UTF-8"
    },
    "name": "Git Bash",
    "platforms":
    [
        "windows"
    ]
},

but
{
"cmd": ["sh.exe", "ssh", "user@host", "-p", "2222", "-i", "C:/key"],
"default": false,
"enable": true,
"name": "ssh",
"platforms":
[
"windows"
]
},

return
/usr/bin/ssh: /usr/bin/ssh: cannot execute binary file

from terminus.

mercurykd avatar mercurykd commented on July 17, 2024

worked for windows if you use git-bash
{
"cmd": ["sh","--login","-i","-c","ssh user@host -i path_to_key"],
"default": false,
"enable": true,
"name": "ssh",
"platforms":
[
"windows"
]
}

from terminus.

mercurykd avatar mercurykd commented on July 17, 2024

For windows, if you use the pageant:
{
"cmd": ["path_to_plink.exe", "-ssh", "user@host"],
"default": false,
"enable": true,
"name": "ssh",
"platforms":
[
"windows"
]
},

from terminus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.