26
28

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 5 years have passed since last update.

SSHログインできない時(Permission denied (publickey,gssapi-keyex,gssapi-with-mic))のとある解決策

Last updated at Posted at 2015-05-12

SSHでエラー

ssh -vvv login_user@host
...
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

上記は原因が多く考えられるエラーであり、直すのが大変。
中でも見落とされやすいのが、~/.ssh/authorized_keys所有者がrootだったりした場合。
authorized_keysの所有者はログインするユーザでなければならないため、

chown login_user ~/.ssh/authorized_keys

とする必要がある。

参考(SSH接続の基本的な設定などもこちらで)

26
28
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
26
28

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?