[macOS]macOS Ventura no matching host key type found. Their offer: ssh-rsa
更新macOS Ventura后,登錄公司跳板機報錯,查看了下Ventura的更新日志,默認不再支持ssh-rsa導致。
解決辦法
在~/.ssh/config中增加默認配置
Host *
...
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
如果可以建議不在使用ssh-rsa,保證更高的安全性。