Setting up OpenSSH for Windows using public key authentication

后端 未结 8 991
忘掉有多难
忘掉有多难 2020-12-07 09:06

I am having issues setting up OpenSSH for Windows, using public key authentication.

I have this working on my local desktop and can ssh with a key from Unix machines

8条回答
  •  南笙
    南笙 (楼主)
    2020-12-07 09:25

    One more tip, if you are stuck, is to run sshd in debug mode. I did this:

    1. Stop the sshd service
    2. Open a PowerShell console with administrator privileges
    3. Type 'sshd -d'
    4. Type login from my client machine

    It turns out the key need to be in e.g. C:\ProgramData\ssh\administrators_authorized_keys instead of C:\Users\yourUsser.ssh\authorized_keys.

提交回复
热议问题