Skip to content

Instantly share code, notes, and snippets.

@baldur
Created July 29, 2016 14:55
Show Gist options
  • Save baldur/25dee1af41e58607da188354682a04ff to your computer and use it in GitHub Desktop.
Save baldur/25dee1af41e58607da188354682a04ff to your computer and use it in GitHub Desktop.
Setup tunnel
ssh -fN -R 2222:localhost:22 serveraddress
Connect
ssh -L 2222:localhost:22 serveraddress
Create a session that can be shared
tmux new -s some_name
Ssh back to localmachien
ssh -p 2222 username@localhost
Invite someone else to log into server
ssh serveraddress
How to connect to the same session
tmux attach -t some_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment