LoginSignup
0

posted at

新しいMacでSSHしたら"no matching host key type found."と怒られた

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

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
0