Error when git pushing

############################################################################

        None of the supplied SSH keys matched a known key for user `alexsondesa06`

        Known ssh key fingerprints for `alexsondesa06`:
                * Hidden for obvious reasons

        Please make sure you've configured your keys correctly.
        https://balena.io/docs/getting-started/#adding-an-ssh-key

        ############################################################################

alexsondesa06@git.balena-cloud.com: Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I’ve been having this error everytime since I try to git push. The keys are the same on GitHub and on Balena. Any help would be appreciated, it may be stupid but I’m new to this and know nothing so sorry.
Thanks, Alex.

Hi there, normally it is sufficient to add your private key to a locally running ssh-agent instance (you can verify your key is added by running ssh-add -l). Then as long as the correpsondign public key is loaded int he [balenaCloud dashboard](https://dashboard.balena-cloud.com/preferences/sshkeys), you should be able to git push balena …`

1 Like

I’ve just configured it on git bash but I’m still getting the same error when pushing it. I’m using PS to push it though idk if that’s the problem.

Just to confirm, in Powershell you can see the key listed when you run ssh-add -l and this is the same key that has been added to balenaCloud? GitHub has some good help guides with configuring this https://help.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent. Are you able to test your setup with GitHub (as you mentioned it is the same key) i.e. https://help.github.com/en/github/authenticating-to-github/testing-your-ssh-connection as this will rule out issues setting up the SSH key.

I ended up fixing it, I just made the same things but from Linux and somehow worked. Thanks though!

Happy to hear that Alex! Thanks for trying Balena Cloud and hope you’ll share with us some of your awesome projects soon!