I just added the CNAME as hinted but when I launch the command it tries to connect to the SSH daemon on the host machine instead of any SSH service provided by the openCloud solution.
Is it correct or should I use a specific port pointing to an openCloud container port ?
balena ssh -v -s
? Select a device winter-rain (3cdc95b)
Connecting to: 3cdc95bdeccdff08b4ff71b672f8ea3b
OpenSSH_7.6p1 Ubuntu-4ubuntu0.1, OpenSSL 1.0.2n 7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
ā¦
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
root@ssh.devices.openbalena.localās password:
ā¦
Host 3cdc95bdeccdff08b4ff71b672f8ea3b not found: 2(SERVFAIL)
Connection to ssh.devices.openbalena.local closed.
The device is using a development image and is connected; everything seems fine and SSH is the only balena-cli command I am unable to use.
I am problably still missing something: any hint ?
I believe that is working correctly. When you execute command to SSH device what I believe happens is a message is sent to Balena supervisor running on remote device which opens a reverse SSH tunnel to openBalena server, then server connects to the SSH tunnel using the local port.
Please see this however:
SSH is listed as beta in the CLI tool and it appears it does not yet work with openBalena instances. It does however work just fine with balenaCloud.
Now that Iām set up with the basics (images are pushing correctly to devices, and they are correctly showing as āonlineā), ssh access is the next priority that comes up for me. A couple questions related to this:
Until the feature to enable access from balena-cli is finished, is there a recommended way to remote access devices manually? (Phrased differently, is all the plumbing there and the only bit missing is the cli automation, allowing us to work around it by issuing the commands ourselves for now? Or are bits of the necessary plumbing missing on the device/server side as well?)
In addition to ssh access through the VPN, Iām also keenly interested in getting the public url forwarding feature working (e.g. ābalena device public-url enableā); this allows me to expose a much more carefully controlled interface for remotely administering the software on my devices rather than relying on full command line access. Right now, this feature just errors out (500 internal server error). Is this intended to eventulaly be part of openBalena, or is it a premium feature that Iām going to need to figure out an alternative solution for?
So SSH is a work in progress at this point, but it will require balenaOS 2.29 upwards to support it. You sound like you have a working VPN though, so this is probably the case.
Public Device URLs are not planned for release on OpenBalena though, so you will need to find your own solution around this.