MacOSからwsl(ubuntu)へssh接続を試みた際に遭遇したエラー。 サーバーとクライアント側の公開鍵が一致していない場合に出会う。
Warning: Permanently added '[ip]:port' (ED25519) to the list of known hosts. user@ip: Permission denied (publickey).
公開鍵を手動でペーストしていたので、スペルミスや、一文字削除してしまっているケースがある。
WSLやWindowsで公開鍵のファイルを確認して修正する。
Register as a new user and use Qiita more conveniently