For When You Can't Have The Real Thing
[ start | index | login ]
start > ssh port forwarding

ssh port forwarding

Created by dave. Last edited by dave, 17 years and 291 days ago. Viewed 4,530 times. #3
[diff] [history] [edit] [rdf]

SSH Port Forwarding


$ ssh -fgNL 8888:apollo:8668


  • f means background after authentication
  • g means permit other machines to attach to the locally-forwarded port
  • N means don't run a remote command
  • L 8888:apollo:8668 means listen to local port 8888, then forward it to apollo's port 8668 (note that "apollo" is resolved on the remote side, not the local one)
  • means connect as user "dave" to the system ""

Port-Forwarding Windows Terminal Services

# ssh -L 4000: dave@pluto

Then connect to localhost:4000 with your remote desktop client.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt