Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I access my OS X machine using SSH, I can't start a GNU screen session. It hangs and does not produce any kind of error message, also Ctrl-C doesn't have any effect. However, if I start a screen session by accessing the machine locally (in for example), and detach from that screen, I can attach to it over SSH.

Any ideas what may be causing that?

share|improve this question
do you try to start the session as the user who logged in through ssh (the one who owns the pty) or do you switch the user after login? – lajuette Jul 23 '10 at 10:46
Nope, did not switch user. – pojo Apr 12 '11 at 10:35
up vote 0 down vote accepted

It could be that screen is depending on GUI integration that has been compiled in and it can't find your $DISPLAY properly when you log in using SSH.

share|improve this answer
AFAIK screen is a console/terminal-only application. On top of that it yould throw an error, if i couldn't connect to $DISPLAY – lajuette Jul 23 '10 at 10:44
screen is a terminal only application but e.g. vim is also a terminal application and can intercept X mouse scrolls events when run from the console if compiled with the correct options. – Mike McQuaid Jul 23 '10 at 11:26

There could be an issue with your system - I can ssh to my system as a different users and run screen. Maybe run it under dtruss and see where it hangs?

sudo dtruss sudo -u $USER screen
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .