Created
September 8, 2016 16:15
-
-
Save likai24/e040a7945736b77c112ff5fc301d783b to your computer and use it in GitHub Desktop.
地址绑定
This file contains hidden or 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
# bind localhost's 5858 to remote machine 5858 | |
ssh -L 5858:127.0.0.1:5858 [email protected] | |
# bind localhost's 8090 to remote machine 8090 | |
ssh -D 127.0.0.1:8090 [email protected] | |
# run command as anthoer user | |
su - root -c "ls -l /root" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment