Deploy an app to heroku fail because of key not authorized

When I am executing :

 git push heroku master

I got the following:

ubuntu@ip-172-31-0-92:~/node-js-sample$ git push heroku master

 !  Your key with fingerprint XXXXXXXXXX is not authorized to access radiant-ocean-5431.

I have only one ssh-key registered on my heroku account, and only one app.

ubuntu@ip-172-31-37-201:~/node-js-sample$ heroku apps
=== My Apps

This is what ssh-add -l outputs:

2048 AAAAAAAAAAA /Users/mylocaluser/.ssh/id_rsa (RSA)
2048 BBBBBBBBBBB /home/ubuntu/.ssh/id_rsa_heroku (RSA)

git remote show heroku fails too

I tried to delete and create again my keys but without any success.
I have also deleted manually most of my keys on herokus, without any success.

I have also followed this:

I have an alias for my user when I am using ssh, could it be the problem?

  • 'git pull' executing in SSH, but not in github post-receive script
  • git clone : no address associated with name
  • Generating SSH keys to be used on different computers
  • GitLab: Can't push code to server?
  • Can't ssh to the host after installing gitosis
  • Ssh keeps forgetting the keys
  • Getting error while trying to push to Heroku
  • How to get git to use an ssh (rsh) transport other than “ssh”
  • 2 Solutions collect form web for “Deploy an app to heroku fail because of key not authorized”

    Need to manually delete openssl.cnf… find the file on your machine and rename it to something else….
    Heroku client internal error. Unable to verify certificate

    ssh-add -l was not listing my public key on the remote machine, because it was not existing.

    Running ssh-keygen fixed the issue.

    Git Baby is a git and github fan, let's start git clone.