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?
I am assuming this is relative to the home directory of the user I am logging in as.
– Dave Feb 18 '19 at 13:08C:\ProgramData\ssh\sshd_config(exclude comments). Output of:cmd /c icacls %userprofile%\.ssh\authorized_keysOutput of:ls -ls /path/to/centos/client.keyOutput of: CentOS SSH client config (ssh_config/config), excluding comments. Depending on setup, will either be at~/.ssh/configor/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. – JW0914 Feb 18 '19 at 13:50