LoginSignup
0
0

VenturaにおいてRSA暗号のkeyでssh接続を行う方法

Last updated at Posted at 2023-08-31

no matching host key type found

最近PCを更新しまして、色々と設定を行っていました。
そこで、少し古いシステムにログインしようとしたところ、以下のように怒られてしまいました。

Unable to negotiate with xxx.xxx.xxx.xxx port xxxx: no matching host key type found. Their offer: ssh-rsa

利用しているシステムが、ssh-rsa keyを指定してきていますが、そんなhost key typeは無いよ!と怒られてしまいました...。
RSAは古い方式のためすでに弾いているようですね...。
ただし、これだと困るので、以下のように指定して対応しました。

configファイルの設定

~/.ssh/config ファイルに以下を追記します。

Host xxx.xxx.xxx.xxx
    Port xxxx
    HostkeyAlgorithms +ssh-rsa
    PubkeyAcceptedAlgorithms +ssh-rsa

これで、ssh-rsaでのssh接続ができるようになります。
ローカルネットワークで利用するものなのであまり大きな問題はないと思いますが、そろそろ更新しないとダメですね...。

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