Mac 无法正常使用 SSH,SSH returns: no matching host key type found. Their offer: ssh-dss

The version of OpenSSH included in 16.04 disables ssh-dss. There’s a neat page with legacy information that includes this issue: http://www.openssh.com/legacy.html

In a nutshell, you should add the option -oHostKeyAlgorithms=+ssh-dss to the SSH command:

ssh -oHostKeyAlgorithms=+ssh-dss root@192.168.8.109

You can also add a host pattern in your ~/.ssh/config so you don’t have to specify the key algorithm every time:

Host nas
  HostName 192.168.8.109
  HostKeyAlgorithms=+ssh-dss

This has the added benefit that you don’t need to type out the IP address. Instead, ssh will recognize the host nas and know where to connect to. Of course you can use any other name in its stead.


源自:https://askubuntu.com/a/836064

本文: Mac 无法正常使用 SSH,SSH returns: no matching host key type found. Their offer: ssh-dss

Loading

Add a Comment

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.