0

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?

Gruber
  • 151
  • 3
  • 9

1 Answers1

2

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.

Gruber
  • 151
  • 3
  • 9
Dennis Kaarsemaker
  • 18,793
  • 2
  • 43
  • 69