I am unable to log into a Windows 10 OpenSSH Server from a CentOS OpenSSH client via public key. My password is always requested (and is accepted).
I've found many posts about setting the permissions properly on the server side for:
- Directory
C:\Users\username\.ssh
- File
C:\Users\username\.ssh\authorized_keys
I believe I've done everything required in terms of permissions. But to rule a permissions problem out, I set StrictModes=no
on the server as a test and restarted the server. I found that I still must enter my password.
What else might be preventing me from logging in via public key?
C:\ProgramData\ssh\sshd_config
(exclude comments). Output of:cmd /c icacls %userprofile%\.ssh\authorized_keys
Output of:ls -ls /path/to/centos/client.key
Output of: CentOS SSH client config (ssh_config
/config
), excluding comments. Depending on setup, will either be at~/.ssh/config
or/etc/ssh/ssh_config
. It would also help if you change verbosity toLogLevel = DEBUG3
& post output of the log, however, you'll need to sanitize it before posting.