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で公開鍵認証できなくなった

Posted at

Venturaにアップデート後にsshしようとしたところ、公開鍵認証できてたサイトに入れなくなった。

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.

とりあえず.ssh/known_hostsから対象のサイトのキーを削除で、パスワードでログイン。

調べてみるとデフォルトのアルゴリズムが変わったことによるものみたい。
ただキーを作り直すのは避けたいので、.ssh/config冒頭に

HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa

を付けることを事なきを得た。

参考
https://superuser.com/questions/1749364/git-ssh-permission-denied-in-macos-13-ventura

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?