screen を使用中に突然クライアントから通信を切断したりして、セッションは残っているのにアタッチできなくなることがある。その場合は、以下のように対処すると、再び接続できる。 状況 $ screen -ls There is a screen on: 23034.pts-0.sakura123 (Attached) 1 Socket in /var/run/screen/S-foo. つなごとするが、、 $ screen -r There is a screen on: 23034.pts-0.sakura123 (Attached) There is no screen to be resumed. 無理。 sshd のプロセスを確認 $ ps aux|grep pts|grep sshd foo 1891 0.0 0.2 9944 1316 ? S 18:42 0:00 sshd:
![screen でセッションが途切れてアタッチできない時の対処法](https://cdn-ak-scissors.b.st-hatena.com/image/square/4644130890c08da2ce60cc24d89ce5318904794c/height=288;version=1;width=512/https%3A%2F%2Fimg.bayashi.net%2Ffavicon.png)