Macを新しくして、ロリポップにsshしようとしたらエラーで怒られた。
% ssh -p xx22 xxxxxxxxxxx@ssh.lolipop.jp
Unable to negotiate with 133.130.xxx.xxx port 2222: no matching host key type found. Their offer: ssh-rsa,ssh-dss
% ssh -V
OpenSSH_9.0p1, LibreSSL 3.3.6
新しいバージョンだと、脆弱性のある暗号化方式は使えなくなったみたい。
ログインできないと始まらないので、~/.ssh/config
に以下を追記
.ssh/config
Host ssh.lolipop.jp
HostKeyAlgorithms=+ssh-rsa
PubkeyAcceptedAlgorithms=+ssh-rsa