OpenSSH从8.7以后版本开始默认不支持ssh-rsa签名的方式,需要手动设置

Dec 27 16:08:56 iZ2zedl4uakd3xuj3rj5b8Z sshd[355179]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]

echo ‘PubkeyAcceptedAlgorithms=+ssh-rsa’ >> /etc/ssh/sshd_config
           systemctl restart sshd