userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
OpenSSH 7.0 以上已经默认关闭了 ssh-rsa 了,我们看一下我们的 ssh 版本:
1 2 3 4 5 6 7 8 9 10 11 12 13
| ssh -V sudo vim /etc/ssh/sshd_config PubkeyAuthentication yes PubkeyAcceptedKeyTypes=+ssh-rsa sudo service sshd restart
ssh -Q key ssh -Q PubkeyAcceptedAlgorithms | grep rsa ssh -G user@somehost.example.com
LogLevel INFO loglevel QUIET tail -f /var/log/auth.log
|