Created
July 29, 2016 14:55
-
-
Save baldur/25dee1af41e58607da188354682a04ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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