[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

5.0

Reverse RDP

Asked by RichardBateman in Remote Desktop/Terminal Services, SSH / Telnet Software, Remote Access Software

Tags: microsoft windows ssh sshd openssh open-ssh putty plink GatewayPorts yes 3389 tunnel mstsc terminal server linux

Hi,

I'm attempting to accomplish a reverse RDP session.  I've seen reports on the web that this can be done, but that it is harder when using XP SP2 or later as the thing you'd like to connect to.  The set up I have so far is this...

PC 1 - WinXP SP2 machine behind a firewall
PC 2 - Internet facing Linux box with SSH
PC 3 - Windows Vista machine that I'm connecting from

So on PC 2 I've got option 'GatewayPorts' set to 'yes' in /etc/ssh/sshd_config and restarted the openssh daemon.  Without it would just give PC 2 the ability to talk to PC 1 on 3389 over the tunnel, with this option turned on it gives PC 2 the ability to accept connections to it on 3389 externally and send them over the tunnel to PC 1.

On PC 1 I have grabbed the PuTTY Link program from... http://the.earth.li/~sgtatham/putty/latest/x86/plink.exe
And using a command like this...

plink -N -R 3389:localhost:3389 user@linuxbox.com

That basically says (in order) run plink, without any shell, forwarded a remote port locally, PC 2 should listen on 3389, and direct it's traffic to that hostname/IP (PC 1), and that port 3389 (on PC 1), and connect over SSH using that user, at that server address.

Now that works... to some extent.  If you use the "Remote Desktop Connection" program on PC 3 to connect to PC 2 you will get the log in prompt for PC 1.  Only problem is, when you've logged in with the right username/password (it knows if you haven't) then it pauses until it eventually times out.

Now I've heard this is perhaps a restriction added so that the terminal service running on PC 1 won't accept any connection that looks like it's coming from itself.  I've tried the following versions...

plink -N -R 3389:localhost:3389 user@linuxbox.com
plink -N -R 3389:127.0.0.1:3389 user@linuxbox.com
plink -N -R 3389:127.0.0.2:3389 user@linuxbox.com
^^ I'm told that used to work before SP2
plink -N -R 3389:192.168.1.2:3389 user@linuxbox.com
^^ Internal IP of PC 1
plink -N -R 3389:pc1:3389 user@linuxbox.com
^^ PC 1's hostname

And they all did the same...

Now I'd have thought if I did forward port 3389 though the firewall PC 1 is behind (this is a test, obviously if I could do this in the environment I mean to use this idea - it would be useless) and use the external IP that PC 1 is using for it's internet access that it would work!  But it doesn't...  So maybe it'll never work, or maybe PC 1 is clever enough to know it's external IP and that it's the same as localhost.

Does anyone have any other ideas on what I can do to get any form of a reverse RDP connection working?

Thanks

Steven
[+][-]09/10/09 04:51 AM, ID: 25299240Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Remote Desktop/Terminal Services, SSH / Telnet Software, Remote Access Software
Tags: microsoft windows ssh sshd openssh open-ssh putty plink GatewayPorts yes 3389 tunnel mstsc terminal server linux
Sign Up Now!
Solution Provided By: lanboyo
Participating Experts: 3
Solution Grade: B
 
[+][-]08/20/09 07:50 AM, ID: 25143239Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/20/09 03:18 PM, ID: 25147665Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/23/09 03:45 PM, ID: 25164591Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/24/09 05:26 AM, ID: 25167580Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/24/09 07:52 AM, ID: 25168904Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/24/09 08:00 AM, ID: 25168981Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/24/09 08:07 AM, ID: 25169080Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/24/09 08:17 AM, ID: 25169197Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/24/09 08:49 AM, ID: 25169531Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/22/09 08:28 AM, ID: 25393936Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/24/09 02:44 AM, ID: 25411423Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/27/09 10:39 AM, ID: 25434700Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/27/09 09:11 PM, ID: 25436683Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/02/09 08:19 AM, ID: 25478757Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/03/09 03:18 PM, ID: 25487366Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091118-EE-VQP-93 - Hierarchy / EE_QW_3_20080625