How to control a screen session inside a screen session?

my local machine terminal screen session 12345 ssh me@remotemachine (I want to be here) screen session 67890 (I'm here) 

I got into a quandary where I cannot get to the ssh session to disconnect it.

If I press ctrl-a ctrl-d in a 67890 session, it separates me from 12345. So, how do I get to a third level ssh session so that I can disconnect it?

Any proposed killing-based solution should not harm processes running in session 67890.

+6
source share
1 answer

ctrl-a a is equivalent to sending ctrl-a child of screen , so ctrl-a ad should disconnect from the first nested session. If you put them deeper, ctrl-a aad will disconnect the second nested session and add additional a as needed. If you nested deeper than level 1 or 2, do not ask for sympathy when your head explodes, trying to maintain the session that you send to ...

+11
source

All Articles