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

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

滚动至顶部