Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have an unreliable Internet connection. Sometimes it is lost while logged on to the text command interface of a Ubuntu server. This results in a "garbage" user session (seen when using the who command).

Is there any way I can login to the server and continue an old session, or should I kill the "garbage" sessions? In that case, how do I do that without killing the current session?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

screen and tmux are your friend here. Run your remote commands in a screen session and when you lose connection and reconnect, you can simply reattach to those sessions.

share|improve this answer
    
Sounds like great programs. I'll give them a shot. No way to reconnect using a standard Linux textual command? –  Gruber Nov 12 '12 at 13:20
1  
Those are the standard :) –  Dennis Kaarsemaker Nov 12 '12 at 13:24

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.