差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
linux:open_ssh:trouble-shooting [2013/10/16 19:45] – 作成 ともやん | linux:open_ssh:trouble-shooting [2019/02/16 21:38] (現在) – 削除 ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== トラブルシューティング ====== | ||
- | ===== Fedora起動後にsshdを再起動しないと接続できない ===== | ||
- | OS起動直後にssh接続すると以下のエラーが発生する場合 | ||
- | < | ||
- | $ sudo journalctl / | ||
- | 10月 10 18:14:02 green-sv.monsters-g.local sshd[8009]: pam_unix(sshd: | ||
- | 10月 10 18:14:22 green-sv.monsters-g.local sshd[8009]: pam_systemd(sshd: | ||
- | 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: | ||
- | </ | ||
- | |||
- | sshdを再起動すると発生しなくなるが、OS起動後に毎回再起動するのは不便。 | ||
- | < | ||
- | $ sudo systemctl restart sshd.service | ||
- | </ | ||
- | |||
- | opensshを再インストール&再設定したら治った。 | ||
- | < | ||
- | $ sudo yum remove openssh | ||
- | </ | ||
- | |||
- | 依存関係により削除されたパッケージも再インストールする。 | ||
- | < | ||
- | $ sudo yum install virt-viewer anaconda openssh-server | ||
- | </ | ||
- | |||
- | sshdの再設定。 | ||
- | < | ||
- | $ sudo vi / | ||
- | /code> | ||
- | |||
- | sshdの開始。 | ||
- | < | ||
- | sudo systemctl start sshd.service | ||
- | </ |