Skip to content

Instantly share code, notes, and snippets.

@surajRathi
Created October 25, 2022 11:45
Show Gist options
  • Save surajRathi/fb6e977767e5e5fc0f7255e980ea5a8d to your computer and use it in GitHub Desktop.
Save surajRathi/fb6e977767e5e5fc0f7255e980ea5a8d to your computer and use it in GitHub Desktop.
SSH Reverse Tunneling

SSH Reverse Tunneling

  1. Start a SSH Server on you local machine.

  2. Someone with cu access must do:sh -fN -R 7090:localhost:23 keerthi@your_public_ip

    • -f: Fork to background # I think we can drop this flag
    • -N: Dont execute any command
    • -R: Do port forwarding This will bind 7090 on your machine to 22 on the CU.
  3. Then on your machine: ssh bolt@localhost -p 7090

  4. You will then be able to access CU from outside IITM.
    The only issue is that you have to run a ssh server on your machine, and in the simplest case, give someone on campus your password. You should be able to set up a user for ssh on your local machine, and avoid giving anyone on campus your password, but that might be some pain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment