SchoofsKelvin / vscode-sshfs

Extension for Visual Studio Code: File system provider using SSH
GNU General Public License v3.0
546 stars 36 forks source link

Error while reading the keyfile at:/path/to/id_rsa #170

Closed ksivaman closed 4 years ago

ksivaman commented 5 years ago

I am trying to connect to a server via a private key and a passphrase. I have entered the absolute path but still get the error:

Error while connecting to SSH FS benjy: Error while reading the keyfile at: /home/ksivaman/.ssh/id_rsa

dlarmgo commented 4 years ago

Well, faced with it too and it's kinda frustrating. It started work only after I choose path to file by "prompt" button and ui directly. After that move it works well, even with previously entered file paths. Also you can try to use $USERPROFILE var in path instead of $HOME.

SchoofsKelvin commented 4 years ago

It's better using the Settings UI over manually editing the settings.json anyway. Although, there shouldn't be a reason absolute paths in the settings.json should fail, apart from using \ instead of \\ in JSON strings.

dossymbekov commented 2 years ago

Worked for me with $HOME/.ssh/id_rsa.

Did not work with other variable: $PWD Did not work with relative path: "~/.ssh/id_rsa" Did not work with absolute path: "/Users/'localuser'/.ssh/id_rsa"