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- https://toolbelt.heroku.com/install-ubuntu.sh | sh

2. In project Directory in terminal run this command

SSH_AUTH_SOCK=0

3. Check available keys at heroku

heroku keys

4. generate key using Command

ssh-keygen -t rsa -C "your_email@youremail.com"

5. Add your key to heroku

heroku keys:add ~/.ssh/you_rsa_key_name.pub

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:
http://stackoverflow.com/questions/4269922/permission-denied-publickey-when-deploying-heroku-code-fatal-the-remote-end

http://stackoverflow.com/questions/10670562/heroku-rails-permission-denied-publickey

Advertisements

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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

StackOverFlow
Categories
Archives
%d bloggers like this: