1
1

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 で「Permission denied (publickey)」になった

Posted at

macOS Ventura にした所、OS 更新前まで問題なく接続できていた ssh が「Permission denied (publickey)」になった問題について確認した際の自分用メモです

原因

MacOS Ventura system ssh no longer supports ssh-rsa reasons and solutions

ssh のバージョンが上がり、RSA/SHA1 アルゴリズムが deprecated になったことが原因のようです

解決方法

~/./ssh 配下を一旦バックアップなどしておき、以下のようにしてよりセキュアな key を作成し、利用する

ssh-keygen -t ecdsa

一時的な回避方法

Git SSH "permission denied" in macOS 13 Ventura

検証していませんが、~/.ssh/config を編集して RSA/SHA1 を許可するような回避方法もあるようです

Host your-old-host.example.com
  HostkeyAlgorithms +ssh-rsa
  PubkeyAcceptedAlgorithms +ssh-rsa

ただし、一時的な回避方法であり、基本的には「解決方法」に記載した方法での対応が良いと考えられます

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?