1、操作系统:macOS Sierra
2、打开终端进行ssh连接的时候报如题所示错误信息
1 2 | SianMac:~ Sian$ ssh root@192.168.128.252
Unable to negotiate with 192.168.128.252 port 22: no matching host key type found. Their offer: ssh-dss |
3、解决方案:在ssh后面加参数-o HostKeyAlgorithms=+ssh-dss
1 2 | SianMac:~ Sian$ ssh -o HostKeyAlgorithms=+ssh-dss root@192.168.128.252 root@192.168.128.252's password: |