Jeremy D
Jeremy D

Reputation: 4855

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
radiant-ocean-5431
thawing-bayou-7424

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: https://stackoverflow.com/questions/8786564/cannot-push-to-heroku-because-key-fingerprint

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

Upvotes: 1

Views: 2438

Answers (2)

Jeremy D
Jeremy D

Reputation: 4855

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

Running ssh-keygen fixed the issue.

Upvotes: 0

user2515011
user2515011

Reputation: 127

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

Upvotes: 1

Related Questions