The keys are correct and sshd is configured correctly (read all previous SO questions for this problem). Any ideas? Trying to connect from Windows with Kitty (improved PuTTy)
Ubuntu Server 20.04 x64
-rw-r--r-- 1 asdf asdf 1475 Oct 18 15:08 /root/.ssh/authorized_keys
/etc/ssh/sshd_config:
Include /etc/ssh/sshd_config.d/*.conf
Port 22
PermitRootLogin no
MaxAuthTries 6
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication no
ChallengeResponseAuthentication yes
X11Forwarding yes
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
Thanks in advance
Luckily found how to fix it by accident - seems sshd cannot read from
~/.ssh/authorized_keys
for unknown reason (have the same installation and configuration on another machine where passwordless ssh works).I was forced to enter another file location in
/etc/ssh/sshd_config
:instead of