Skip to content

Instantly share code, notes, and snippets.

@b8jdkal
Created September 8, 2016 16:15
Show Gist options
  • Select an option

  • Save b8jdkal/e040a7945736b77c112ff5fc301d783b to your computer and use it in GitHub Desktop.

Select an option

Save b8jdkal/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 ubuntu@some.ec2.host.com
# bind localhost's 8090 to remote machine 8090
ssh -D 127.0.0.1:8090 ubuntu@some.ec2.host.com
# 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