Node Red Projects and GitHub/Balena

I'm trying to connect up my Development Device to my Balena so I can git push to deploy my program.

The issue I'm having is that I can't get the Balena integration to work. Ive created my SSH key and I've added it into my Balena settings. I created my SSH Key here:

I've then got the URL from my balena application and added it as a remote:


When I go to the Commit History and Manage remote branch I get this:

This spinner doesn't go away.

I have tried setting up a GitHub remote, and this works - as long as I don't also try to add a Balena remote at the same time. If I have both it asks for verification over and over.

If I try to push from the Command line I get an error saying “none of the supplied SSH keys matched a known key for user {my_username}”.

Can anyone help?

Edit: I was trying to follow the instructions here but resin io has changed to balena

The way I sorted this was by creating a ssh key through the terminal and then adding it to the ssh-agent and to balena. I'm not sure why the node-red generated ssh keys wouldn't work.

Here is a link to the forum post on the balena forum where I got the help.

Here is a link to the tutorial that guided me through creating the ssh key and adding it to the ssh-agent.

In case the links don't work in the future the commands I used were:

# start the ssh-agent in the background
$ eval $(ssh-agent -s)
> Agent pid 59566

$ ssh-add ~/.ssh/id_rsa
$ sudo apt-get install xclip
# Downloads and installs xclip.

$ xclip -sel clip < ~/.ssh/
# Copies the contents of the file to your clipboard

Then just add the SSH key to the preferences on Balena and you're good to go.

Hope this helps anyone that has the same issue.