久しぶりにssh接続しーよおっと〜
あれ..?
$ ssh hostname
Unable to negotiate with xxx.xxx.xxx.xxx port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
なんじゃこりゃあ。
TL;DR
~/.ssh/config に下記を追加。
Host *
HostKeyAlgorithms=+ssh-rsa
PubkeyAcceptedAlgorithms=+ssh-rsa
KexAlgorithms +diffie-hellman-group1-sha1
Ciphers aes128-cbc
原因
MacOSをVersion UPしたことによって、RSAキーを使用したSSH接続に問題が発生しているようです。
$ cd ~/.ssh
$ chmod 600 *
$ ssh-add -K ~/.ssh/id_rsa
のようにSSKキーファイルの設定を変更すれば解決するそうですが、万が一ぶっ壊れたら嫌なので、confに設定を追加しました。
ようには
SSHなんかやめようぜ。