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 7696373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:45:52+00:00 2026-05-31T21:45:52+00:00

I installed Git and ran the set up my username and email. git config

  • 0

I installed Git and ran the set up my username and email.

git config --global user.name "Your Name"
git config --global user.email username@gmail.com
Add your public key 

Next, I created a project directory called ‘projectname’ and committed this to a remote Git server.

mkdir projectname
cd projectname
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:projectname/projectname.git
git push origin master

My public key has been added to the github website.

When I try to commit I get this error message:

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

Any suggestions? – I am working with Ruby on Rails

  • 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-05-31T21:45:54+00:00Added an answer on May 31, 2026 at 9:45 pm

    Make sure you copy past the SSH key exactly like it’s in the xxxx.pub file do not add lines or spaces to it.

    Try again or delete both public and private keys and generate them again. It should work. Also remember to update the pub key again on Github website.

    Also test your existing key with this command

    ssh -T git@github.com

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

Sidebar

Related Questions

I installed Git via the Mac OS X link here http://git-scm.com/download After installing it,
Greetings, I recently set up a GitHub repository and installed Git on my system.
Just installed git on Windows. I set the GIT_DIR variable to be c:\git\ and
I've installed Git to do some development using Visual Studio 2008. Most of the
Hi I just installed git cygwin on my windows pc at work, but somehow
I still have XP on my laptop and have installed Git so that I
I'm on Mac Snow Leopard and I just installed git . I just tried
On my Mac OS X 10.5 (Leopard) machine, I have installed Git 1.6.0.2 using
I installed Msys Git and TortoiseGIT x64. Whenever I try to use the Get
I have GIT running on a Solaris server. From a windows machine I installed

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.