I baked Image without -d option and boot this image on Raspberry Pi 3 but I could not connect to device via balena ssh <local ip address>. balena ssh <local ip address> return Permission Denied(public key).
Of course I made wifi setting file and put into /boot/system-connections/ and I could get device local IP address.
When I baked with -d option, I succeeded connect to device via balena ssh <local ip address>.
If my guess is correct, please fix tutorial for other developers.
Hi,
I could access to device via balena ssh to add ssh key in the config.json. but balena push was failed
balena push 192.168.x.x
Debug: original argv0="/usr/local/lib/balena-cli/bin/node" argv=[/usr/local/lib/balena-cli/bin/node,/usr/local/lib/balena-cli/bin/run,push,192.168.x.x] length=4
[debug] Using . as build source
[Debug] Checking we can access device
[Debug] Sending request to http://192.168.x.x:48484/ping
Could not communicate with local mode device at address 192.168.x.x
Anything need to add in the config.json other than ssh key?
Hi @CameronDiver,
Thank you for your comment.
I understood about difference between ssh connection by adding ssh key in config.json and development (local) mode.
Actually, how we can bake own image as development mode?
I guess that we need -d option when run build command, is this correct?
There’s actually two different things going on here, as my colleague mentioned:
Development mode (not ‘local mode’) allows the injection of an SSH key that will allow you to login to the device
‘local mode’ is a separate mode for the Supervisor which allows you to carry out local development on that device using balena push <ipAddress>
You can enable ‘local mode’ for any device connected to balenaCloud by going into the ‘Actions’ tab for the device and then selecting ‘Local mode’. Be aware that any application that is currently running will stop. You can find more information on this here: https://www.balena.io/docs/learn/develop/local-mode/