macOS升级到Ventura后,远程连接服务器提示
Unable to negotiate with x.x.x.x port 1234: no matching host key type found. Their offer: ssh-rsa
这是因为新版本的openssh不支持RSA和DSA等老算法的协商了,所以需要在```.ssh/config```里面增加配置
Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
保存后重新连接就可以了