LoginSignup
1
0

[MacOS]ssh接続の際、パーミッションエラー

Last updated at Posted at 2024-03-19

経緯

MacOSからwsl(ubuntu)へssh接続を試みた際に遭遇したエラー。
サーバーとクライアント側の公開鍵が一致していない場合に出会う。

エラー内容

Warning: Permanently added '[ip]:port' (ED25519) to the list of known hosts.
user@ip: Permission denied (publickey).

解決策

公開鍵を手動でペーストしていたので、スペルミスや、一文字削除してしまっているケースがある。

WSLやWindowsで公開鍵のファイルを確認して修正する。

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