1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

MacOS Venturaにアップグレードしたら、SSH接続ができなくなった!解決方法は?

Posted at

久しぶりに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なんかやめようぜ。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?