Home network to Balena Cloud connectivity

Hi All

I have a Pi Online in Balena cloud, I would like to understand the details of How Pi join the Balena cloud. I tried looking around HOST CLI but not much help. I would like to run a security assessment before bring up more devices.


Have a look at our FAQ here: FAQs - Balena Documentation
maybe the points there help answer your questions… but please ask away here if anything is not clear :slight_smile:

Thank you Robert. I educated myself a lot on how after looking into various file. I am looking to enable standalone ssh access using key which require editing config.json file. I got the steps to do that however now sure what format I should use to define the key - something like “ssh-key”: ‘’
You think that should work ?


Hey Amit, here’s how you can add SSH keys to your device to be able to use a standard SSH client: Configuration - Balena Documentation


My config.json looks a little different but I still inserted the OS parameter and included SSH Pub key in it. I editing the jason by hand but still not working. I am sending specific key to this key pair -

ssh$ssh -i id_ed25519 -l root -p 22222
root@ Permission denied (publickey)


Update: Got this working after a reload: Please find the logs for local ssh :

Feb 11 17:01:19 ecc3a34 sshd[5926]: Accepted publickey for root from port 50037 ssh2: ED25519 SHA256:wdymbrotRBUCIwxxZ3AtIEos27zjKLXxkNoYWsBJw6Q

Thanks for help!

Hello Amit - Glad this is working for you now.

Hi Mark,

One more thing, as I have wifi interface available I disconnected the ethernet and tryinh to connect to pi hole ui via http:// but it says connection refused on port 80.

TCP-Socket$curl -v

  • Rebuilt URL to:
  • Trying…
  • Connection failed
  • connect to port 80 failed: Connection refused
  • Failed to connect to port 80: Connection refused

Any idea why it is not listening on port 80 on wifi interface ?


Hi there, the service is by default configured with host networking, therefore it should bind to all available interfaces on the host. Does it work if you reconnect the Ethernet interface? What about if you restart the service after Wireless interface reconnects? Also, have you looked into device URLs?