Site icon moneyslow.com

ssh连接报错userauth_pubkey: key type ssh-dss not in PubkeyAcceptedKeyTypes [preauth]

ssh技巧

ssh技巧

解决办法:
vi /etc/ssh/sshd_config
最后一行添加:
PubkeyAcceptedKeyTypes=+ssh-dss
重启服务:
systemctl restart sshd

另外,如果是RSA不支持的问题,有可能是服务器端,也有可能是客户端有问题,建议放弃RSA,比较麻烦,参考:

Exit mobile version