LoginSignup
2
1

More than 5 years have passed since last update.

ssh公開鍵認証でログインできなくなる

Posted at

いきなり以下のようなエラーが出ました。

[root@entaku19890818 /]# tail -f /var/log/secure 
 Authentication refused: bad ownership or modes for file /***/.ssh/authorized_keys

調べてみると、ホームディレクトリのパーミッションが所有者以外の場合に起こってしまう現象のようです。
なので、chmodでパーミッションを変更しOK。
気軽に変えてはいけないし、作業ディレクトリは別にすべきかなー

chmod -R 755 /****/        
2
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
2
1