vscode-docs icon indicating copy to clipboard operation
vscode-docs copied to clipboard

[SSH tips] Scripts to authorize a machine to connect don't work for administrators on Windows OpenSSH host

Open pawelszramowski opened this issue 11 months ago • 1 comments

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

pawelszramowski avatar Mar 12 '24 00:03 pawelszramowski

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.

bamurtaugh avatar Mar 12 '24 16:03 bamurtaugh

https://github.com/microsoft/vscode-docs/issues/7107#issue-2180494132

bayu889900 avatar May 13 '24 23:05 bayu889900

https://github.com/microsoft/vscode-docs/issues/7107#issue-2180494132

bayu889900 avatar May 13 '24 23:05 bayu889900