how is the SSH key added to balenaCloud used?

thx a lot that helps me a lot, so get out of my mess

  1. add OpenSSH public key (not putty key) to Balena Cloud
  2. open balena-cli
  3. balena-cli -> login
  4. bash -x ./run.sh of balena-io-playground/ssh-key-insert: Tooling to insert the relevant SSH keys into balena devices’ configuration. (github.com) to add penSSH public key to device
  5. balena-cli -> logout
  6. open terminal of OS
  7. using OS’s ssh to login into production directly

correct?

If so, final question, where does balena-cli expect the private ssh-key to be stored using

  • Windows
  • Windows Subsystem Linux

as I cannot use the -i flag in case of balena-cli -> ssh so I have to store the key where it is expected what is properly not the case so that is why I get:

...@ssh.balena-devices.com: Permission denied (publickey).
Warning: ssh process exited with non-zero code "255"

as mentioned in Balena ssh fails with Permission denied (publickey) - Product support / balenaOS - balenaForums

1 Like