LoginSignup
13
4

More than 1 year has passed since last update.

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

Posted at

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
13
4
0

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
  3. You can use dark theme
What you can do with signing up
13
4