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

  • SEARCH
  • Home
  • 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 8783589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:51:28+00:00 2026-06-13T20:51:28+00:00

I seem to have lost my permissions to a github account after pushing to

  • 0

I seem to have lost my permissions to a github account after pushing to it from another (local) repository. I am now receiving the following error:

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

I then took the following steps to regenerate a key:

ssh-keygen
Set up an ssh on my account for this laptop, using id_rsa.pub

However, this was unsuccessful. When I try the following code suggested, I receive the following error:

ssh-add -l
Could not open a connection to your authentication agent.

Any thoughts?

  • 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-13T20:51:30+00:00Added an answer on June 13, 2026 at 8:51 pm

    I solved this problem following this step-by-step instructions:

    Step 1: Check for SSH keys

    $ cd ~/.ssh
    # Checks to see if there is a directory named ".ssh" in your user directory
    # If it says "No such file or directory" skip to step 3. Otherwise continue to step 2.
    

    Step 2: Backup and remove existing SSH keys

    $ ls
    # Lists all the subdirectories in the current directory
    # config  id_rsa  id_rsa.pub  known_hosts
    
    $ mkdir key_backup
    # Makes a subdirectory called "key_backup" in the current directory
    
    $ cp id_rsa* key_backup
    # Copies the id_rsa keypair into key_backup
    
    $ rm id_rsa*
    # Deletes the id_rsa keypair
    

    Step 3: Generate a new SSH key

    $ ssh-keygen -t rsa -C "your_email@youremail.com"
    # Creates a new ssh key using the provided email
    
    # Generating public/private rsa key pair.
    # Enter file in which to save the key (/home/you/.ssh/id_rsa):    
    # Enter passphrase (empty for no passphrase): [Type a passphrase]
    # Enter same passphrase again: [Type passphrase again]    
    # Your identification has been saved in /home/you/.ssh/id_rsa.
    # Your public key has been saved in /home/you/.ssh/id_rsa.pub.
    # The key fingerprint is:
    # 01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db your_email@youremail.com
    

    Step 4: Add your SSH key to GitHub

    $ sudo apt-get install xclip
    # Downloads and installs xclip
    
    $ xclip -sel clip < ~/.ssh/id_rsa.pub
    # Copies the contents of the id_rsa.pub file to your clipboard
    

    Then, go to GitHub, and do:

    1. Go to your Account Settings
    2. Click "SSH Keys" in the left sidebar
    3. Click "Add SSH key"
    4. Paste your key into the "Key" field
    5. Click "Add key"
    6. Confirm the action by entering your GitHub password

    Step 5: Test everything out

    $ ssh -T git@github.com
    # Attempts to ssh to github
    

    If ok, you’ll see

    Hi username! You've successfully authenticated, but GitHub does not
    # provide shell access.
    

    Otherwise (it happened with me), you will see

    Agent admitted failure to sign using the key.
    # debug1: No more authentication methods to try.
    # Permission denied (publickey).
    

    To solve this

    $ ssh-add
    # Enter passphrase for /home/you/.ssh/id_rsa: [tippy tap]
    # Identity added: /home/you/.ssh/id_rsa (/home/you/.ssh/id_rsa)
    

    For original info

    https://help.github.com/articles/generating-ssh-keys

    https://help.github.com/articles/error-agent-admitted-failure-to-sign

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

Sidebar

Related Questions

I seem to have a problem passing some strings on from one form to
i seem to have some trouble installing autopy.h https://github.com/msanders/autopy/#introduction i already tried the installation
I just upgraded to Aptana 3 and seem to have lost some of the
I seem to have lost my afternoon's work in a new repo. Here's what
Not any homework, but seem to have got lost while doing basics, hence asking.
I seem to have found a bug in jQuery UI that duplicates dragged elements
I seem to have hit a snag while building my project using Ant. The
I seem to have the Twitter Bootstrap carousel working properly as far as moving
I seem to have broken validates_confirmation_of in my rails app. My model looks like
I seem to have looked through many solution on here and the web and

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.