Score:0

ssh and sshfs connection via NordVPN meshnet not working

fj flag

I have set up an OpenSSH server on my home PC (Ubuntu 22.04 LTS) and am trying to connect to it using ssh and sshfs from my Laptop (Ubuntu 20.04 LTS).

The server seems to be running smoothly and I can easily access it, while in the same network. As I can't configure a port forwarding (the router I got from my ISP doesn't allow it), I am trying to use NordVPN's Meshnet to establish a connection.

Using the NordVPN hostname or IP, I can connect as well, while in the same network. The problem arises, when trying to connect from a different network:

  • While the first ssh connection is working properly, if I exit this connection and try connecting again, the connection fails with "Connection closed by port 22"
  • When I try to establish an sshfs connection, I have the same problem. Curiously, if I add the sshfs command to my startup applications, it works at first (I can access the directory via Files, open files, etc.), but disconnects after roughly half a minute.
  • purging and reinstalling nordvpn enables one connection to be made again, same if I run iptables -F and sudo systemctl restart NetworkManager
  • when running service ssh status on the PC it shows "fatal: Timeout before authentication for port 47176" (this port changes each time)

Things I have tried so far:

  • Ran sudo ufw allow ssh on both devices
  • Added sshd: <Client meshnet IP> to "/etc/hosts.allow" on the host
  • Flushed all iptables rules and set the default policy to ACCEPT
  • removed all NordVPN settings and config files
  • ran nordvpn whitelist add port 22on both devices

The last few were recommended by the NordVPN support (which gave up). I'm not ready to let this idea go yet, as it would allow me to leave my external drives at home and access them remotely, instead of taking them everywhere and wearing them down.

If anyone has an idea on what else I could try/where to look into, I'd appreciate it.

David avatar
cn flag
I use ExpressVPN their product stops ssh from working. Maybe NordVPN is the same you need to ask them.
Stefan avatar
fj flag
As I wrote, I was already in contact with the NordVPN support and they also advertised ssh over meshnet on their website, so it should definitely be intended to work
Rytis Karpuška avatar
us flag
Hi, an engineer at NordVPN here, would You be willing to open up an issue at https://github.com/NordSecurity/libtelio? As it is not immediately clear what could be the root cause of the issue, two-way communication would be helpful to figure it out.
Stefan avatar
fj flag
@RytisKarpuška gladly: https://github.com/NordSecurity/libtelio/issues/5
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.