Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm a newbie to tunneling and can't figure this one out. I have an externally available computer, let's call it, which is Unix. In its internal network there is a Windows machine I want to access, with an internal ip, let's use I need to tunnel into in order to RDP into How can I achieve this?

share|improve this question

closed as off-topic by growse, Ward, mdpc, Nathan C, Falcon Momot Sep 5 '13 at 13:05

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is a site dedicated to professionals; novice questions are off-topic. Please see the Help Center for more information on topicality. The best advice we can give you is to hire a professional to help you out." – growse, mdpc, Nathan C, Falcon Momot
If this question can be reworded to fit the rules in the help center, please edit the question.

SSH tunnel. There's tons of guides on how to use one. – Nathan C Sep 4 '13 at 11:54
Yes, I know and have read them, however all of the ones I have read assume that the tunnel is the computer that you want to access. I want to access a computer inside the tunnel's network. – Matthew Sep 4 '13 at 11:57
up vote 1 down vote accepted

You want to use SSH tunnelling, like Nathan C said in his comment. The guides assume you're tunnelling to the computer you're connecting to, but only because those guides use 'localhost' as the foreign host name. Try something like this from your home machine:

ssh -Nf -L 8080:[RDP-port]

I'm not sure what the port number is for RDP, so I had to leave that unreplaced. Once you execute this command (with the proper port number for "RDP-port"), it should background and you should be able to RDP to "localhost:8080" from your home machine and end up talking to the Windows machine on the inside.

share|improve this answer
This works! Thanks! – Matthew Sep 4 '13 at 12:14

Not the answer you're looking for? Browse other questions tagged or ask your own question.