Permission denied (publickey)

Permission denied (publickey).
fatal: The remote end hung up unexpectedly

1. You need to install Heroku Toolbelt if not installed yet.

wget -qO- | sh

2. In project Directory in terminal run this command


3. Check available keys at heroku

heroku keys

4. generate key using Command

ssh-keygen -t rsa -C ""

5. Add your key to heroku

heroku keys:add ~/.ssh/

After this check if it is working using git clone command or any other command. If it did not give Permision denied Error, then you are ok.

If it gave same error then,

6. Run this command

ssh-add ~/.ssh/your_heroku_key_rsa_name

Referenced by:


I am Senior Software Engineer. I love reading, writing, sharing,developing, hiking, movies, trips, mountains, brooks, hills etc.

Tagged with: , , , ,
Posted in Heroku

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: