balena-io / open-balena

Open source software to manage connected IoT devices at scale
https://balena.io/open
GNU Affero General Public License v3.0
1.03k stars 162 forks source link

I can't connect to device - balena ssh <uuid device> - Host <UUID> not found: 2(SERVFAIL) #184

Closed matiasAS closed 3 weeks ago

matiasAS commented 4 months ago

Description

I'm encountering a persistent problem when attempting to establish an SSH connection to devices managed by openBalena. Despite having the necessary DNS configurations and verified connectivity through nslookup for ssh.devices.openbalena-sistemasmas.online, I'm unable to use the balena ssh <UUID> command to connect to my devices. The operation fails with the following error:

Although I can successfully establish a connection using balena tunnel, I am looking for a resolution to use balena ssh due to its more direct, faster, and easier approach.

Environment

Steps to Reproduce

  1. Execute the command balena ssh <UUID> in the terminal.
  2. The error message appears immediately after.

Current State

Attempts to Resolve

I wonder if leaving the DEVICE_CONFIG_SSH_AUTHORIZED_KEYS environment variable empty could be causing the issue, as I have not configured it for my setup. Could this be related to the balena ssh command not functioning as expected?

ab77 commented 3 weeks ago

openBalena does not have SSH functionality, unlike balenaCloud. You could implement your own using tunnel endpoint provided by open-balena-vpn.