Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9254571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:30:15+00:00 2026-06-18T11:30:15+00:00

Edit #3 Updating this at the top because it solved my issue and gave

  • 0

Edit #3

Updating this at the top because it solved my issue and gave me a good troubleshooting step I didn’t know about (and could save you some time, too)

Try getting the output of ssh -vvv git@heroku.com. For me, ssh was getting hung up on trying keys in /c/Program Files (x86)/Emacs/.ssh when my public key was in /c/Users/NumberOverZero/.ssh

Deleting the Emacs ssh folder (which was empty) fixed my issue since ssh would then check my Users .ssh folder.


I’m getting Permission denied (publickey) when trying to git push heroku master.

A few things that makes this different from the posts below:

  • I have ssh working for github
  • I was able to successfully push to heroku last night
  • Since that push, I’ve made a single-line change to one js file, and committed and pushed. There have been no other changes.

The closest I could find was this post:

git clone heroku ssh permission denied

I’ve looked through the related issues (there’s quite a few):

git push heroku master Permission denied (publickey). fatal: The remote end hung up unexpectedly
git push heroku master permission denied
git clone heroku ssh permission denied
https://stackoverflow.com/questions/13059076/git-push-permission-denied-publickey-windows-xp
heroku – rails – Permission denied (publickey)

I’ve tried:

  1. heroku keys:clear
    heroku keys:add
    
  2. heroku keys:clear
    *delete every key in .ssh*
    heroku keys:add
    
  3. *delete my application on heroku*
    heroku keys:clear        
    heroku login (adds key for me)
    heroku create
    git push heroku master
    fails
    
  4. *delete the app on heroku*
    delete keys in .ssh
    heroku keys:clear
    copy all files into a new repository
    push new repository to github successfully
    heroku login (adds github key for me)
    heroku create
    git push heroku master
    fails
    
  5. *delete the app on heroku*
    heroku keys:clear
    heroku login (adds key for me)
    heroku create
    heroku git:clone app app
    fails
    

Any ideas? I’ve gone through all of the steps in the linked SOs – most of which were just people not running heroku:add or setting up ssh keys (which I’ve done in each of these).

I let heroku take the wheel most of the time, (instead of directly creating ssh keys) assuming that the built-in commands would do what they needed when there were no ssh keys present. It seems not.

EDIT: And now that I deleted the app, the new relic addon is alarming that the website is down. Trying to log in through their website asks me to log in through heroku. Which I can’t find a way to do, since the app is gone. Is there a way to delete that addon now that I can’t get to the app? heroku addons gives an error, so I don’t think I’m getting to it through there.

EDIT #2: Added another step I tried – moved files into new repository and push to new application.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T11:30:16+00:00Added an answer on June 18, 2026 at 11:30 am

    Nice job linking to all the other things you’ve looked at and tried! (that will improve the responses you get, but still you should be prepared for a lot of ‘have you tried…’, and ‘maybe it’s …’ because this is a system/env issue that isn’t on the normal flow)

    You might have had something working in your local terminal session that has since been lost. (I’ve had this happen a bunch of times)

    Things it might be:

    1. your ssh keys on heroku
    2. your ability to push up to heroku from that computer/network
    3. something about your git repo

    I ran into this once and it was driving me crazy. I hopped on my (FREE) cloud9 account, cloned some simple rails app from github and pushed it out to heroku, which helped me prove that my heroku account was fine, heroku itself was fine, but my local laptop had some issues in my configuration.
    I think the issue was my username, but I don’t remember. (moving to a different env and starting from scratch helped me realize the issue though)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this action for updating data: def edit @project = Project.find(params[:id]) if @project.team
EDIT: My sincere apologies! This wasn't an issue with anything but myself - I
EDIT: Ok so I'm updating this question, to show what I've built as I've
EDIT 07/14 As Bill Burgess mentionned in a comment of his answer, this question
EDIT : It turned out that this can only be done through an external
Edit : updating generalized question to reflect actual domain: sport of hockey. The actual
Edit: Updating post based on Martins comments below Hello, I'm just trying to get
I am having a problem with updating one of my older apps, this is
I'm not sure if this is an issue with the DataGrid control or with
EDIT: My code for this is actually open source, if anyone would be able

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.