Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pawelszramowski opened this issue Mar 12, 2024 · 1 comment · May be fixed by #7114
Assignees
Labels
doc-enhancement suggested addition or improvement

Comments

@pawelszramowski
Copy link

pawelszramowski commented Mar 12, 2024

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
@ntrogh ntrogh added the doc-enhancement suggested addition or improvement label Mar 12, 2024
@bamurtaugh
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-enhancement suggested addition or improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants