Closed Dekker1 closed 1 year ago
@Dekker1 it supports both ed25519
keys and passwordless keys, and I'm using them both :thinking:. could you try first deleting your key from the ssh-agent with ssh-add -D
and then adding it back ssh-add ~/.ssh/id_ed25519
and see if it ask for the passphrase or not
I managed to resolve the issue. I tried your suggestions, using ssh-add
I was prompted for a password, but leaving it empty worked. Then I was reminded that this might be because the password was stored somewhere. I found that in my .ssh/config
I had set `UseKeychain yes, and the password was stored in the macOS key chain. It seems that the VSCode extension (and the local ssh installation) that I used previously, must have abided by this option and used the system stored password. (It apparently had been so long that I had even forgotten I still had a password).
It would be great if this extension could support the UseKeychain
option.
@Dekker1 Just tested this and for me it's working as expected and reading the key from the agent, I forgot to mention you need to pass --apple-use-keychain
so the correct command is ssh-add --apple-use-keychain ~/.ssh/id_ed25519
, I don't have UseKeychain yes
in my config
Let me know if it's working after you use the updated command
Great! That fully solves my issue. Thank you for the amazing support!
I'm using VSCodium on an M1 macOS system. I recently switched from VS Code, and use the MS extension. (I was really grateful to see an open alternative. Thank you for the hard work!) I have various servers to which I connect with SSH using public key authentication, but I cannot get it to work using this extension. When I try to connect I am prompted by the following message.
I don't know which password it is asking for, but when I enter the password for the account on the server I get re-prompted, so I assume this is not the one. My public key does not have a password, but leaving it blank results in an error
Could not establish connection to "<server>"
and the following messages are displayed in the output.Am I doing something wrong, or am I trying to use something that isn't supported? (maybe
ed25519
keys, or keys without passwords?)