rdesktop can't conect remote pc with reverse ssh tunnel
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
rdesktop can't conect remote pc with reverse ssh tunnel
Pc a can't connect pc b directly.No firewall build on both pc a and pc b.
Pc b is running win7 ,port 3389 is opened for remote desktop connection.
A reverse ssh tunnel created on pc b.
ssh -fNg -R 10020:127.0.0.1:3389 root@vps_ip
Now to login into vps_ip from pc a.
ssh root@vps_ip
rdesktop 127.0.0.1:10020
ERROR: Failed to open display:
Like gda wrote, you can't start an X program from an ssh terminal without specifying the X DISPLAY.
After the tunnel is setup, you could try something like:
Code:
$ ssh -X root@vps_ip xterm
then, at the xterm session:
$ rdesktop 127.0.0.1:10020
ssh -X root@vps_ip
root@vps_ip's password:
Last login: Sun Jul 31 03:28:58 2016 from 114.114.114.114
/usr/bin/xauth: file /root/.Xauthority does not exist
[root@localhost ~]# rdesktop 127.0.0.1:10020
ERROR: 127.0.0.1: unable to connect
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.