当我从 macOS 13(Ventura)通过 SSH 连接时:
sudo ssh -i /path/to/my_id_rsa [email protected]
当此密钥上没有密码时,系统会要求我输入密码。
当我在 Filezilla SFTP 上使用同一个my_id_rsa
文件时,我可以访问服务器。
当我跑步时:
sudo scp ~/.ssh/my_id_rsa.pub [email protected]:
它返回:
Unable to negotiate with xx.xx.xxx.xx port 22: no matching host key type found. Their offer: ssh-rsa,[email protected],ssh-dss scp: Connection closed
我怎样才能克服这个错误?