• 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

This Article Has Been Shared 398 Times!

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

  • Apple MacBook Pro 15 Inch Retina and Non Retina Excels At Quality

    Apple MacBook Pro 15 Inch Retina and Non Retina Excels At Quality. New MacBook Pro 15 Inch is a powerhouse deigned for the professionals like a luxury sedan.

  • Using Facebook From Command Line Interface

    Using Facebook From Command Line Interface adds the advantage to minimalistic text only mode with faster loading mode. You can test it on your computer too.

  • YouTube Video : YouTube Tips and Tricks for Publishers

    YouTube Tips and Tricks for Publishers will help you to create, optimize YouTube videos, get direct backlinks, Traffic to your blog as well as earn money.

  • External Hard Drive Not Recognized : Pointing Towards the Solution

    External Hard Drive Not Recognized is a quite common situation faced by many users. People blame the Operating System, scratch own heads but problem persists.

  • Command Line Web Browsing : Full Guide

    Command Line Web Browsing is of fun, useful and actually fast and safe. We can use Lynx, Links like Free Software on UNIX / OS X, Linux or Windows to surf.

Additionally, 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

  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023
  • Difference Between Panel Light, COB Light, Track Light January 21, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Github SSH Key Not Working For Command Line : Troubleshooting," in The Customize Windows, April 24, 2013, January 30, 2023, https://thecustomizewindows.com/2013/04/github-ssh-key-not-working-for-command-line-troubleshooting/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT