Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm a newbie to tunneling and can't figure this one out. I have an externally available computer, let's call it example.com, which is Unix. In its internal network there is a Windows machine I want to access, with an internal ip, let's use 192.168.1.144. I need to tunnel into example.com in order to RDP into 192.168.1.144. 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
add comment

1 Answer 1

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 user@example.com -L 8080:192.168.1.144:[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
add comment

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