Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 Terminal.app 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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.