LoginSignup
0
0

More than 1 year has passed since last update.

プログラムからpemファイルを使用したssh接続が出来ない

Posted at

事象内容

プログラムからssh接続するような処理でPrivateKeyにpemファイルを設定していたが、以下のようなエラーが出た

ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

解消法

色々調べたところ、権限変更と秘密鍵登録をすればいけた

$ chmod 600 ~/.ssh/hoge.pem
$ ssh-add ~/.ssh/hoge.pem
0
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
0
0