


There is a file on the server which has a list of public keys inside it. I did it with FTP but you can do it however you wish but it needs to end up in a similar directory on the server. The public key (_rsa.pub) needs to be copied to the server () The private key (_rsa) can stay in the local. This should make two files: _rsa (private key) Next generate a public and a private key with something like OpenSSL ssh-keygen -q -b 2048 -P "" -f /Users//.ssh/keys/_rsa -t rsa Tell VS Code and your machine in general how you will be connecting to myhost I'm using a Mac so Windows will be a bit different but the basics are the same These examples assume the following (replace with your actual details) Host: myhost To setup password-less authentication for ssh on Visual Studio Code, perform the following steps. This section is the workaround the OP ended up accepting: registering the public key on the remote user account, and caching the local private key passphrase worked.

Using an SSH key means its public key would have been registered to the remote account ~/.ssh/authorized_keys file. This assumes you are using an SSH key, as described in " VSCode: Connect to a remote host", and you are not using directly the remote user password. "ssh password": Assuming you are referring to a ssh passphrase, meaning you have created an encrypted private key, then "saving the ssh password" would mean caching that passphrase in order to avoid entering it every time you want to access the remote host.Ĭheck first if you can setup the ssh-agent, in order to cache the passphrase protecting your private key. No, but you can use SSH keys and that is better. (it defers to the OS underlying credential manager)īut I don't know of a remote user password cache when SSH is used.Īs Chagai Friedlander comments, the answer to the original question is therefore: It is only supported by a Git credential helper, when using HTTPS URLs. It is called PasswordAuthentication, often the remote user password.Īnd caching that password is not supported for SSH sessions. VSCode proposes to setup an SSH Agent in order to cache the passphrase (in case you are using an encrypted key)īut if the public key was not properly registered to the remote account ~/.ssh/authorized_key, SSH daemon will default to the remote user credentials (username/password). Since there is no such thing as "ssh password", the answer to "how to save the remote user password" is:
