Authorize Hermes App to open a SSH to a Umbrel VM

Setup:

  • umbrelOS 2.0
  • Hermes Agent installed from the App Store
  • A VM running in Machines (Debian) with OpenSSH server running
  • Port forwarding in the machine’s settings: Umbrel port 40002 → VM port 22
  • Umbrel LAN IP: 192.168.1.2

What I’m trying to do:
Let the Hermes Agent app SSH into the VM.

What works:
From my PC on the same network, this connects fine:

ssh -p 40002 username@192.168.1.2

What doesn’t work:
The same command from the Hermes app’s terminal is refused:

$ ssh -p 40002 username@192.168.1.2
ssh: connect to host 192.168.1.2 port 40002: Connection refused

Ping to 192.168.1.2 from the Hermes terminal works (0% packet loss).

I also tried the Docker network gateway address:

$ ssh -p 40002 username@10.21.0.1

Question:
How can an app container like Hermes reach a port forwarded from a Machines VM? Is there a supported address or setting for app-to-VM connections?

Thanks and great work!

Davide Bert

hey Davide, this looks like a networking limitation rather than Hermes needing permission to use SSH. In umbrelOS 2.0, Machines’ port-forwarding rules handle connections arriving from the LAN, but not from app containers. That fits why your PC can connect while Hermes gets “connection refused”. Using the Docker gateway address won’t get around that either.

One workaround worth trying is using the Umbrel host as an SSH jump host. Inside the Debian VM, run hostname -I to find its VM address, then run this from Hermes, replacing VM_IP with that address and username with your Debian username:

ssh -J umbrel@192.168.1.2 username@VM_IP

That connects through the Umbrel host to the VM’s port 22, so you don’t use port 40002 here. It requires SSH access to the Umbrel host as well as the VM.

The catch is that you’d be giving Hermes access to the Umbrel host too. If you only want it to have access to the VM, I wouldn’t use that workaround or start loosening firewall rules. Your existing SSH setup looks fine; it’s the app-container-to-VM forwarding path that needs addressing.