Connect two remote computers

7 réponses [Dernière contribution]
GNUbahn
Hors ligne
A rejoint: 02/19/2016

I am looking for a way to connect to e.g. my mothers computer (Linux Mint) in another part of the country, so I can help her with technical issues. I need a remote desktop solution, so that I can see and show what I do.

Neither computer is on a network with a static ip address. If necessay, static ips can be bought, but I would like to avoid that.

Is there a (simple) workaround?

Can I set up a direct connection without static ips?
Can I setup a rented VPS (e.g. at Hetzner), which both computers can connect to, allwing me to access the other computer?

Avron

I am a translator!

Hors ligne
A rejoint: 08/18/2020

Previously, I was doing that with my mother's and my aunt's computers that did not even have a public IPv4 when connected to the network. My solution was to have autossh-tunnel making a reverse ssh tunnel to a VPS.

However, my mother now has a connection with a public IPv4 address, and even a fixed one, so I stopped doing that. My aunt has a connection with a public IPv4 address but not fixed. I have a domain registered at OVH, which allows configuring a dynamic DNS host, ddupdate runs on my aunt's computer (running Trisquel) and it updates the addess, so I can access it with a fixed name.

In my ~/.ssh/config, I have something like (I replaced my mother's name with alice)

Host alice-vnc
Hostname mother.mydomain
Port 5432
User alice
LocalForward 5900 localhost:5900
RemoteCommand x11vnc -localhost -display :0

5432 (I don't use this number) is the port that the ISP routeur fowards to port 22 of my mother's computer (this needs to be configured on the routeur). "User alice" is for the username to connect as, I have put a public ssh key in ~/.ssh/authorized_keys on her computer, and I disabled password authentication. I run "ssh alice-vnc" in one terminal and "gvncviewer localhost:0" in another terminal, then I get the remote display to her computer.

If you have more interest with the solution via a VPS, I can try configuring it again (at some point, it wasn't working and it was faster to configure with the hostname than find out my mistake).

By the way, I also configured access via TOR, but I only used it for a connection by terminal, I don't know whether it would work for vnc, I could try it. The benefit of going via TOR is that you don't need any assistance of a VPS.

GNUbahn
Hors ligne
A rejoint: 02/19/2016

I want to study a little more about Rustdesk. If it fails to meet my demands, I will return with more questions. Thanks.

Avron

I am a translator!

Hors ligne
A rejoint: 08/18/2020

I applied exaclty the configuration at https://gangplank.group/mediawiki/index.php?title=SSH_over_Tor in order to use ssh over TOR.

On the remote computer, I installed x11vnc, and on the local computer, gvncviewer.

Then, in .ssh/config, for the entry that does ssh with tor, I added:

LocalForward 5900 localhost:5900
RemoteCommand x11vnc -localhost -display :0

On my computer, I ran the command

gvncviewer localhost:0

It worked. Of course, it may be a bit slow, but this can work even without a public IP address and without any kind of proxy, just TOR. TOR is a very nice option to run a server behind any internet connection, it works without configuring anything else than the server.

MistahDarcy
Hors ligne
A rejoint: 03/18/2016

RustDesk is one of the easiest solutions. The server portion can be self hosted. https://directory.fsf.org/wiki?title=RustDesk&oldid=87589

GNUbahn
Hors ligne
A rejoint: 02/19/2016

I may be paranoid but I believe I have read a number of times, that the Rustdesk application send information like ip-address, connect-time etc. to the developers server.

Like I said, I might just be paranoid - and right now I cannot find that suspicious information.
Do you know if I am wrong?

MistahDarcy
Hors ligne
A rejoint: 03/18/2016

It looks like you may be right on this one. At least someone has verified this behaviour on a Microslop client.

> Notably, even before a session is accepted, the rustdesk_rCURRENT.log file already records the public IP address of the connecting device (although I did find that in some case, it will log the internal IP address as well), as shown in the image above.

Source
https://archive.li/fmqK2
https://medium.com/@chaoskist/deep-dive-into-rustdesk-rmm-investigation-forensics-on-windows-6d8ba816a11e

Ark74

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/15/2009

Headscale maybe?