使用ssh工具通过密钥登录debain12提示:(‘Bad authentication type’, [‘publickey’]) (allowed_types=[‘publickey’])
原因:查看系统日志,有如下提示
sshd[1838]: pam_env(sshd:session): deprecated reading of user environment enabled
sshd[1848]: userauth_pubkey: signature algorithm ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
解决方法:
echo “PubkeyAcceptedAlgorithms ssh-rsa” >> /etc/ssh/sshd_config
systemctl restart sshd
debain ssh密钥登录提示:(‘Bad authentication type‘, [‘publickey‘]) (allowed_types=[‘publickey‘])
于 2023-12-07 16:11:35 首次发布