Wednesday, April 8, 2009

HTTP over SSH

  1. setup HTTP over SSH on Linux server
    • ssh -L 7878:localhost:8080 robin@boston
  2. from your desktop run putty
  3. create a new ssh connection to server, you still use ssh on port 22 to connect to boston.
  4. in setting, add a forward port
  5. bring up your browser, type address http://localhost:8080/. You can see the webpage
  6. test that is using SSH connection. http://boston:7878/, you can't connect it because is ssh connection. You can't connect http://localhost:8080/ if you haven't made a ssh connection with boston.
  7. other readings. http://jstrassburg.blogspot.com/2006/01/howto-tunneling-http-over-ssh-with-dd.html

No comments: