vscode-docs
vscode-docs copied to clipboard
[SSH tips] Scripts to authorize a machine to connect don't work for administrators on Windows OpenSSH host
Scripts here and here add the public key to ~/.ssh/authorized_keys
on the host. However, the path used if the user belongs to administrator group is different for the Windows OpenSSH server that you recommend.
With the default file modified instead, ssh
kept asking for password. This fallback is confusing, so it should also be recommended to have the client exclusively use the just-generated identity by adding the following to ~/.ssh/config
:
IdentityFile ~/.ssh/id_ed25519
IdentitiesOnly yes
Thanks for opening. If you have a moment, would you mine opening a PR with the change you describe? I'd be more than happy to review.
https://github.com/microsoft/vscode-docs/issues/7107#issue-2180494132
https://github.com/microsoft/vscode-docs/issues/7107#issue-2180494132