userauth_pubkey: signature algorithm ssh-rsa not in PubkeyAcceptedAlgorithms
userauth_pubkey: signature algorithm ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]@TOC升级openssh为9版本后,配置互信失败了,查看/var/log/messages里面查看报错:userauth_pubkey: signature algorithm ssh-rsa not in PubkeyAcc
·
userauth_pubkey: signature algorithm ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]@TOC
欢迎使用Markdown编辑器
升级openssh为9版本后,配置互信失败了,查看/var/log/messages里面查看报错:userauth_pubkey: signature algorithm ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
使用sshd -v查看openssh版本
解决办法:
到升级的openssh配置目录,升级之前是默认的是/etc/ssh/sshd_config,升级后是/usr/local/etc/sshd_config,需要到升级后的有效的配置文件里面,默认的配置文件无效
vi /usr/local/etc/sshd_config
PubkeyAcceptedAlgorithms=+ssh-rsa
重启服务 /etc/init.d/sshd restart
问题解决了!
更多推荐
已为社区贡献1条内容
所有评论(0)