Server Fault is a question and answer site for system and network administrators. 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

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
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
Those are the standard :) – Dennis Kaarsemaker Nov 12 '12 at 13:24

Your Answer


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.