报错如下:

Unable to negotiate with 10.10.10.100 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

解决办法:

cd ~/.ssh

vim config

Host *
ControlMaster auto
ControlPath ~/.ssh/master-%r@%h:%p
IdentityFile ~/.ssh/id_rsa
IdentitiesOnly yes
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa