软媒设计
[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,保证更高的安全性。