6
4

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接続できない時の対処法

Last updated at Posted at 2022-11-04

問題

macOS Venturaにアップデート後、ssh接続しようとすると以下のような警告文が出る

sign_and_send_pubkey: no mutual signature supported
hoge@hoge.example.com: Permission denied (publickey).

対策

configにて対象のHostに以下の末尾2行を追加

~/.ssh/config
Host example.com
...
  HostKeyAlgorithms  +ssh-rsa
  PubkeyAcceptedKeyTypes  +ssh-rsa

追記

macOSVenturaでOpenSSH_9.0p1が標準搭載になり、SHA-1ハッシュのRSA署名が無効になったため発生したようです。
一時対策なので、本来はサーバーのSSHソフトのアップデートが必要

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

6
4
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
6
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?