Skip to content

Instantly share code, notes, and snippets.

@dksifoua
Created March 30, 2020 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dksifoua/467d9be6fc04e85a6a6bc8fea3eb1b12 to your computer and use it in GitHub Desktop.
Save dksifoua/467d9be6fc04e85a6a6bc8fea3eb1b12 to your computer and use it in GitHub Desktop.
After we ssh to the remote machine, we have to make sure to work inside a tmux session.
This will ensure that our session will be kept alive even even if we loose our connection.
$ sudo apt-get install tmux
$ tmux new -s my_awesome_session
# you live here
$ tmux detach
$ tmux attach -t my_awesome_session
# you come back here tomorrow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment