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, 12 years and 160 days ago. Viewed 3,274 times. #3
[diff] [history] [edit] [rdf]
labels
attachments

SSH Port Forwarding

Example:

$ ssh -fgNL 8888:apollo:8668 dave@xdroop.dhs.org

where

  • 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)
  • dave@xdroop.dhs.org means connect as user "dave" to the system "xdroop.dhs.org"

Port-Forwarding Windows Terminal Services

# ssh -L 4000:172.17.20.100:3389 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:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt