vscode-sshfs
vscode-sshfs copied to clipboard
Feature request: Allow to specify public key
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
- store the private key in a file and get the passphrase by prompt or plaintext storage
- unload keys from ssh-agent
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.
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
.
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.