function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Arup SarkarArup Sarkar 

Error deploying to heroku

Hi,

 

I am following the instruction as mentioned in the below URL:

 

http://www2.developerforce.com/mobile/getting-started/html5/#angularjs-heroku

 

Finally, when I am trying to deploy to heroku using the following command

 

git push heroku master

 I am getting the following error

 

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

  I have already added the client_id generated after creating connected apps as mentioned.

 

Any help will be appreciated.

Best Answer chosen by Admin (Salesforce Developers) 
Arup SarkarArup Sarkar

For everybody else, facing the same issue, I did the following.

 

ssh-keygen -t rsa

heroku keys:add

 

then did 

git push heroku master

 

worked. Thanks all of you, you helped me resolve my issue.

All Answers

akhilesh_sfdcakhilesh_sfdc

This usually happens if you haven't uploaded your ssh public key to heroku. https://devcenter.heroku.com/articles/keys

Gaurav KheterpalGaurav Kheterpal

Add your Heroku instance key using the command

 

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

 

That should fix it. This is a generic Heroku issue captured on this link - http://stackoverflow.com/questions/4269922/permission-denied-publickey-when-deploying-heroku-code-fatal-the-remote-end

 

Hope this helps.

Arup SarkarArup Sarkar

For everybody else, facing the same issue, I did the following.

 

ssh-keygen -t rsa

heroku keys:add

 

then did 

git push heroku master

 

worked. Thanks all of you, you helped me resolve my issue.

This was selected as the best answer