0
1

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ログイン時の"status=0004"エラー

Last updated at Posted at 2018-01-01

結論

"/root" の権限がガバガバすぎた。↓で解決
(root) # chmod 0600 /root

"/root/.ssh" あたりの権限もチェックしておくこと

ユーザ名もキチンと確認すること(今回は該当せず)

経緯

raspberry pi上のファイル見れるようにしたいなー

よっしゃ!
/root を sambaで見えるようにしたれ!
(root) # chmod 0777 /root

ほんで、 vi /etc/samba/ ...ゲストオンリーデ...ゴニョゴニョ

翌日

[SSH]_error.png

---------------- {1時間経過} ----------------

わからん、ssh-keygenで鍵変えまくってもだめ・・・ウイルス?
ログ見てもわからんやろな・・・

less /var/log/auth.log

[SSH]_log.png

ん?
「bad ownership or modes for directory /root」

ポーン(眼球が飛ぶ音)

0
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?