0
いつかプログラムでsshセッション切断をチェックしたい段階で
、私は確認応答ストリーム接続を決定する切断テンプレートと一致していているclosed.Theテンプレートは次のようになります。
Timeout, server xxx.xxx.xxx.xxx not responding.
とpacket_write_wait: Connection to xxx.xxx.xxx.xxx port 22: Broken pipe
sshが切断された場合、いくつのエラーメッセージが表示されますか?
があり、他のメッセージがプリントだろうか?
[SSH接続を確認するためのbashスクリプトの作成方法](https://stackoverflow.com/questions/1405324/how-to-create-a-bash-script-to-check-the) -ssh-connection) –