Thanks. Yes, this is perfect. I still want screen to start when I login as a normal user, but exec does what I want. That way, I can still su to root and exit my root shell without logging out. What used to be four presses of ^D now only takes one or two. Perfect! It even closes my Cygwin window which is what I want. I had no idea it was that simple. Now I exec ssh from Cygwin. The -d and -R switches to screen are also what I wanted. That way a new screen launches when I connect if I didn't detach from my previous session but re-attaches if there is already a detached session. Perfect! I knewe there was a way to do what I wanted, but I wasn't sure how. On 4/1/2013 7:13 AM, Devon Stewart wrote: > From cygwin: exec ssh ... > From ssh: exec su > From su: exec screen > > Then from screen, if you hit ^D it'll exit everything. Exec replaces the current running shell with the thing you're exec-ing. > > -Devon