Skip to content

Instantly share code, notes, and snippets.

@likai24
Created September 8, 2016 16:15
Show Gist options
  • Save likai24/e040a7945736b77c112ff5fc301d783b to your computer and use it in GitHub Desktop.
Save likai24/e040a7945736b77c112ff5fc301d783b to your computer and use it in GitHub Desktop.
地址绑定
# 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