LoginSignup
8
9

More than 5 years have passed since last update.

no matching cipher found. と出てSSH接続ができない。

Posted at

今回のお題

表題の通りです。
ターミナルからssh接続ができずに困りました。。。

きっかけ

PCを再起動した直後から起こりました。
もしかしたらOSのバージョンアップがあったかもしれませんが、
原因は別のところにあるのかもしれません。

現象

以下コマンドでssh接続を試みるが、以下の文言が返ってきて接続できない。
ssh sanapon1020@XXX.XXX.XXX.XX

Unable to negotiate with XXX.XXX.XXX.XX port 22: no matching cipher found. Their offer: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se

no matching cipher found...?

対応

~/.ssh/configを作成し、以下を追記しました。

~/.ssh/config
Host XXX.XXX.XXX.XX
  Ciphers aes128-cbc
8
9
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
8
9