So I'm trying to deploy my app to heroku but it keeps giving me this error whenever I push to master:
! Your key with fingerprint cb:e1:5c:31:cd:6b:78:6e:30:ff:eb:11:e2:4b:2e:b3 is not authorized to access smooth-mountain-8970.
I tried everything from generating new ssh keys to deleting everything and replacing the files. I even created a different username and tried uploading, but it keep giving me this error thinking that I want to upload to smooth-mountain when in fact, my app name is NOT smooth-mountain. Do you guys know what the problem might be?
Thanks.
Solved this kind of problem just by typing in local shell
where accountname is the name of the account that holds the Heroku app. After that git push heroku master works fine. Didn't have to do anything else.
Looks like many have run into this problem with multiple accounts, so I thought I'd share this. I'm myself managing multiple accounts (on a single machine) of which each has multiple apps deployed. I've installed the heroku-accounts plugin for Heroku CLI. (https://github.com/ddollar/heroku-accounts)
In my case,
Did show me my correct key, but I still couldn't push to Heroku.
This is what worked for me:
That is, it worked for me yesterday, but today... it did not.
This is what worked today, thanks to help from my Unix-master boss:
After I rename my app at Heroku.com, I had the problem:
I was try almost everything ... as @Nosayr Yassin, said ...
I don't have any .config file, but I found the wrong reference at
my_app_root_dir/.git/config
it's contains
I changed for:
Then, run agian
and that's it, I finally can re-deploy my app again ...
thks for all your tips :P
Rgds iVieL
edited: btw, I running on OSX Lion :)
I found an easier solution via Heroku Devcenter. Here's what I did to get it working properly.
It will generate the public/private rsa key pair. If you already have one then pass n for no.
It will find existing public key and upload the SSH public key.
That's it. It was that easy.
ssh-agent
(a program that holds private keys used for public key authentication) runs automatically since Mac OS X Leopard. To resolve your problem you must remove identities from the agent by issuing the following command.Example:
This will only remove the keys from this session temporarily. Personally, I don't mind doing this once in a while. However, if you would like disable ssh-agent permanently, see: SSH Key Disable Caching