How can I connect to my home computer from my work computer behind a VPN (using a remote desktop viewer)?


Valdirus

I have a dyndns account associated with my home computer and everything is set up so I can SSH into it from my work (college) computer. Then, connect them to the university VPN (using these steps ) and go ahead and try to access them graphically using a remote desktop viewer. However, this fails and I'm not sure why. I tried using the dyndns URL and it returned the local address by running ifconfig on my home laptop:

eth0      Link encap:Ethernet  HWaddr 00:90:f5:be:62:10  
          inet addr:192.168.1.78  Bcast:192.168.1.255  Mask:255.255.255.0
ppp0      Link encap:Point-to-Point Protocol  
          inet addr:192.168.94.81  P-t-P:192.168.94.21  Mask:255.255.255.255

But even after specifying port 5900 (which I think should be chosen automatically) these commands don't help. I'm not sure which one should I use (inet addr, PtP?)

The error I get is Connection to host <hostname> was closedthat although sometimes it looks like it times out, other errors fail immediately.

Here is the output of ifconfig in my work computer:

eth0      Link encap:Ethernet  HWaddr bc:ae:c5:2d:3a:ef  
          inet addr:192.168.94.7  Bcast:192.168.94.255  Mask:255.255.255.0
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
thanks

The approach here might be to establish a VNC tunnel through an SSH session or using the reverse VNC protocol.

The default Ubuntu remote desktop viewer, Remmina , can be set up to do this.

If the VNC server can transmit the VNC protocol over SSH, you can use any VNC viewer that can receive this signal.


We use x11vnc here as the VNC server and vncviewer ( xtightvncviewer ) to do this.install x11vnc Install xtightvncviewer

If you already have VNC set up on your home computer, it's as easy as running

x11vnc -display :0

Display on your home computer as an export :0via VNC . This can also be done through an SSH session. Note that for the next step, you need to have an SSH server running on your home computer.

Run vncviewer in your office with the option to -viatunnel over SSH :

vncviewer -via [email protected] localhost:0

For the entire guide, see: x11vnc homepage .

For information on how to use lightDM to connect to a remote computer, see the following questions:

Related


I can't find the remote desktop option on my computer

Emile Rivere Here's a screenshot of what I'd like to get in the "Remote" tab of my PC: However, I can't find the "Allow remote connections to this computer" checkbox on my machine. Can someone help? I am using Windows Home version: 1803 Saaru Lindestøkke Windo

Can I use SATA to connect my computer?

username Can two computers be connected together using SATA like a crossover ethernet cable? I know that SATA has no "networking" capabilities, even though the controller may have multiple ports, the drives cannot "see" each other, and in SATA one device acts

Can't remote desktop into my computer if firewall is running

dessert Both are Windows 8.1 in the local network. Enable remote access, enable firewall rules: However, if the firewall is running, I cannot RDS into this computer. If you open the firewall, you can put RDS in. what to do? Benjamin Pollack Firewall rules in W

How do I create a remote branch for pushing to from my computer?

Paul Taylor I'm using gitHub and so far have a forked repository that only contains a local and remote master branch, but I'm trying to use branches for each issue so that my pull requests only contain the commits I just pushed, while Not all outstanding commi

How can I use my Ubuntu desktop computer as a server?

Nived Kannada Can I convert my Ubuntu desktop installation to a server? I want to test this, but I don't want to make any permanent changes. How to temporarily host html webpages on PC? zhongfu If you wish to host html web pages on your Ubuntu desktop installa

How can I get remote access to the MySQL database on my computer?

noob programmer I've read a lot and tried all the suggestions but nothing seems to work. I want my Java program to be able to remotely access a database on my computer. I tried using the IP address as the hostname, but that didn't work. The only way to allow a

I can't find the remote desktop option on my computer

Emile Rivere Here's a screenshot of what I'd like to get in the "Remote" tab of my PC: However, I can't find the "Allow remote connections to this computer" checkbox on my machine. Can someone help? I am using Windows Home version: 1803 Saaru Lindestøkke Windo

I can't find the remote desktop option on my computer

Emile Rivere Here's a screenshot of what I'd like to get in the "Remote" tab of my PC: However, I can't find the "Allow remote connections to this computer" checkbox on my machine. Can someone help? I am using Windows Home version: 1803 Saaru Lindestøkke Windo

Can I use SATA to connect my computer?

username Can two computers be connected together using SATA like a crossover ethernet cable? I know that SATA has no "networking" capabilities, even though the controller may have multiple ports, the drives cannot "see" each other, and in SATA one device acts

How do I create a remote branch for pushing to from my computer?

Paul Taylor I'm using gitHub and so far have a forked repository that only contains a local and remote master branch, but I'm trying to use branches for each issue so that my pull requests only contain the commits I just pushed, while Not all outstanding commi

How can I use my Ubuntu desktop computer as a server?

Nived Kannada Can I convert my Ubuntu desktop installation to a server? I want to test this, but I don't want to make any permanent changes. How to temporarily host html webpages on PC? zhongfu If you wish to host html web pages on your Ubuntu desktop installa

Can't remote desktop into my computer if firewall is running

dessert Both are Windows 8.1 in the local network. Enable remote access, enable firewall rules: However, if the firewall is running, I cannot RDS into this computer. If you open the firewall, you can put RDS in. what to do? Benjamin Pollack Firewall rules in W

How can I get remote access to the MySQL database on my computer?

noob programmer I've read a lot and tried all the suggestions but nothing seems to work. I want my Java program to be able to remotely access a database on my computer. I tried using the IP address as the hostname, but that didn't work. The only way to allow a