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

Feature request: Allow to specify public key #348

Open schklom opened 2 years ago

schklom commented 2 years ago

My situation

I typically have about 5+ SSH keys loaded in my ssh-agent, without storing key files on my disk because they are loaded by KeePassXC (a password manager).

Problem

When I try to connect to a server, SSH goes through many keys before finding the good one, and the server refuses with the error Too many authentication failures.

Dealing with it outside VSCodium

To avoid this, my ~/.ssh/config specifies

Host aa
    User bb
    HostName cc
+   IdentityFile /abc/dd.pub

to indicate that I only want to try a single key (identified by the public key).

The corresponding ssh command would contain

ssh -i /abc/dd.pub bb@cc

Inconvenient solutions

Either

Request

Allow an option to specify a public key in order to narrow down the list of keys that ssh will try to use from the agent when it connects to remote servers.

sangrepura commented 11 months ago

It this extension being maintained (this issue is over a year old)? I just installed it and was surprised that I couldn't configure it to use my public key or my ~/.ssh/sconfig.

schklom commented 11 months ago

Last update in April. I don't think it is abandoned, I think the dev likely had a lot on their plate for the last few months, and this issue is not really an urgent one.