linux:openssh:trouble_shooting

トラブルシューティング

OS起動直後にssh接続すると以下のエラーが発生する場合

$ sudo journalctl /usr/sbin/sshd
10月 10 18:14:02 green-sv.monsters-g.local sshd[8009]: pam_unix(sshd:session): session opened for user tomoyan by (uid=0)
10月 10 18:14:22 green-sv.monsters-g.local sshd[8009]: pam_systemd(sshd:session): Failed to connect to system bus: 
Did not receive a reply. Possible causes include: 
the remote application did not send a reply, the message bus security policy blocked the reply, 
the reply timeout expired, or the network connection was broken.
10月 10 18:14:22 green-sv.monsters-g.local sshd[8009]: pam_unix(sshd:session): session closed for user tomoyan

sshdを再起動すると発生しなくなるが、OS起動後に毎回再起動するのは不便。

$ sudo systemctl restart sshd.service

opensshを再インストール&再設定したら治った。

$ sudo yum remove openssh

依存関係により削除されたパッケージも再インストールする。

$ sudo yum install virt-viewer anaconda openssh-server

sshdの再設定。

$ sudo vi /etc/ssh/sshd_config

sshdの開始。

sudo systemctl start sshd.service
  • linux/openssh/trouble_shooting.txt
  • 最終更新: 2020/05/10 03:02
  • by ともやん