52

How to go about closing a stalled screen tab (the machine is no longer reachable) ?

4 Answers4

85

try to kill command.

  1. select stalled window ( C-a :select <stalled window number> )
  2. send kill command ( C-a :kill )
yoshikaw
  • 1,576
10

The most simple and direct way, which has always worked for me, is

C-a, k
hopeseekr
  • 1,762
5

Assuming you are using the OpenSSH client to connect, you can type Enter ~ . to close the connection.

To list the other SSH client escape commands, type Enter ~ ? when connected.

Tyson
  • 161
0

When you have an unresponsive tab, oftentimes you cannot navigate into the tab itself; to kill a stalled tab/window from another tab:

C-a: at "<tabNum>#" kill, i.e. to kill tab 7, C-a: at "7#" kill

To kill an individual tab in a detached GNU Screen session:

screen -XS <sessID> -p <tabNum> kill

Hope someone finds this useful...