• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Github SSH Key Not Working For Command Line : Troubleshooting

By Abhishek Ghosh April 24, 2013 8:14 pm Updated on October 17, 2014

Github SSH Key Not Working For Command Line : Troubleshooting

Advertisement

Github SSH Key not working for command line but is working for Mac GUI Tool from Github – this is quite common situation and here is very easy way to fix it. Github has official guide for Github SSH Key not working for command line, but actually that is not very practical in all cases. They have used an one user, one repository (that is Github) specific guide.

 

Github SSH Key not working for command line : Why it Happens

 

Github SSH Key not working for command line but nicely for command line tool, happens due to actually wrong setup of the Github App or may be they deliberately created the App in an way to avoid UNIX’s security which actually will create the installation difficult or may be they thought that who will use command line tool will not use the GUI tool.

It happens when there are lot of other repositories on various servers already added before adding the SSH keys of Github on your OS X or may be that GUI tool. Actually there is not much meaning to dissect the origin problem from so much depth. Understand one thing, that normally OS X will allow id_rsa SSH key but the GUI tool uses the named key. You can manually add that key in Github Interface for CLI or you can use symlink or add another key. We will use the last way.

Advertisement

---

 

Recommended Reading :

 

  1. Secure Shell or SSH (its not about Key itself)
  2. Managing Multiple SSH Keys Through Command Line (for OSX, in Linux it will work in kind of same way)
  3. Handy Guide to PuTTY (This is a SSH/Telnet client for Windows users who has not upgraded their OS to Linux)

 

Github SSH Key Not Working For Command Line : Troubleshooting

 

We are taking that you have some idea how to add, manage SSH keys. Notice the screenshot :

Github SSH Key Not Working For Command Line
Situation :

When you are running this command :

ssh -vT git@github.com

You are getting this :

debug1: No more authentication methods to try.Permission denied (publickey).
Run this command :

eval <code>ssh-agent

It should return an Agent PID. If it does not work, there is definite gross issue and work from the beginning to generate RSA Key in proper hierarchy for better management. Now Add the Key :

ssh-add ~/.ssh/id_rsa

It will give the return :

Vim
1
Identity added: /Users/username/.ssh/id_rsa (/Users/username/.ssh/id_rsa)

Now go back to what Github actually said in the guide (copy paste the url) :

 

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

 

That is, running :

 

Vim
1
ssh-add -l

 

Run the command :

 

Vim
1
pbcopy < ~/.ssh/id_rsa.pub

 

It will copy the big key in clipboard. Your work is to go to the Github’s webcontrol panel and adding another new key. Ultimately you will get two set of keys :

 

Github keys

 

Obviously you have to paste the clip board in that field to add key by hitting command + V from keyboard. The reason to add two separate keys is for finer independent control and specific tracking.

Tagged With github ssh login not working , aix ssh-keysign not enabled in /etc/ssh/ssh_config , github for windows commandline does not work , github ssh key not working , ssh not working on mac , ssh-keygen -t rsa not work , You dont have any public SSH keys in your GitHub account You can add a new public key
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Github SSH Key Not Working For Command Line : Troubleshooting

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • OpenShift OctoPress Auto install Script

    OpenShift OctoPress Auto install Script is an Advanced Script to Run OctoPress on Free OpenShift PaaS Practically Without Any Knowing Ruby or Git.

  • OpenStack Swift & HPCloud CDN PHP Bindings : Basics

    Here is the basics of OpenStack Swift & HPCloud CDN PHP Bindings for the WordPress Plugin developers and those who works with PHP based CMS.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy