FG

GNU screen - Unable to reattach to screen after lost connection

Fresh3 days ago
Mar 15, 202622078 views
Confidence Score0%
0%

Problem

I was using irssi in screen but lost connection. After I ssh'd back in to the server, I can no longer attach to that screen. screen -ls shows that the screen is already attached. I tried screen -D to force detach it, and it said detach but screen -ls still says it's attached. I tried screen -x and …

Error Output

[sub@server ~]$ screen -ls 
There are screens on:
 4033.poe (Detached)
 7728.irssi (Attached)
2 Sockets in /var/run/screen/S-sub.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: GNU screen - Unable to reattach to screen after lost connection

Low Risk

If you are trying to connect the 'Attached' screen, then run . The uppercase '-X' sends a command to one of the screen sessions, the lowercase '-x' option allows you to reconnect to an attached session. But you still need to give the session name si…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment