SSH Permission denied (publickey) gotcha

if you get

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

it might mean your balena cloud ssh key (https://dashboard.balena-cloud.com/preferences/sshkeys) is out of date

the fact that balena cli is otherwise working DOES not mean you SSH keys are up to date which is the mistake i was making

it might be worth documenting this somewhere maybe in the faqs

Thanks for the suggestion. I’ll create a ticket so we can hopefully improve the docs!

1 Like

Thanks for the contribution, just wanted to let you know the PR has now been merged and your changes should be available from version v12.7.4 onwards.