如题
离线
看授权日志 /var/log/auth.log
No supported authentication methods available [preauth]
userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
根据这个问 chatgpt
离线
打开 /etc/ssh/sshd_config
添加 PubkeyAcceptedAlgorithms +ssh-rsa
然后禁止密码登录:PasswordAuthentication no
搞定收工
离线