Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
GitHub and PuTTY - permission denied (pubkey)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eric  
View profile  
(1 user)  More options Jul 5 2008, 9:50 am
From: Eric <ehwin...@gmail.com>
Date: Sat, 5 Jul 2008 06:50:57 -0700 (PDT)
Local: Sat, Jul 5 2008 9:50 am
Subject: GitHub and PuTTY - permission denied (pubkey)

If you use PuTTY and want to use github but get
permission denied (pubkey)
read on.

Overview
To use git with GitHub you will need:
•     Git
•     PuTTY (or some tool for SSH).  I use PuTTY.
Like many I use PuTTY on my XP and Vista machine.
This is a nagging issue on the forum because there is a difference in
PuTTY’s public key format and a mystery requirement that I didn’t see
documented anywhere.  It is doable. It took me about 15-20 minutes on
my second machine.

Best information came from a post, that solved about 90% of the
problem, but this missed a key point: capturing key for server here’s.
---
JeremyLuebke, “Windows Setup Guide”

http://groups.google.com/group/github/browse_thread/thread/fcfcfb3c5b...

Here’s what I did and what worked:
Install Putty
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

download putty (all of it)
install putty
You will use putty, puttygen and plink.exe, pageant
Create an SSH key
Run Puttygen
Create a key (I used) SSH-2 RSA 1024
Enter a key phase (needed if you want to look at it in the future)
Save private key
Save public key

Register public key with github
Reopen puttygen
Load the private key from the file you created above.
At the top of the screen is your OpenSSH SSH public keyword.
Copy string from “public key for pasting into OpenSSH Authorized_keys
file” from the puttygen window (DO NOT USE the public-key-file that
puttygen produced.  This format with it’s comment begin and end will
not work with github).
Send the key to the GitHub repository owner.
GitHub owner must add add it to github (account/SSH Public Keys)

Add SSH Key to Pageant
Launch pageant
From system tray right click, select view keys (should be empty)
Add key (browse for private key file *.ppk) use your password to read
it in.
You are now ready to use SSH, and ready for GitHub to know you.

As an aside I also created a SSH-2 RSA for 2048 for better security.

Install Git
I installed 1.5.5, in the process you will install cygwin if you do
not yet have it.

Set  GIT_SSH
Set  GIT_SSH as an environment variable via contol panel
GIT_SSH=C:\Program Files\PuTTY\plink.exe
Open a new window (which will now have the env. Variable)

Register github.com fingerprint
This was missing from the above post.  I was unable to add the
fingerprint of the github server when I ran my first git push origin
master.  The problem I had is I was not able to type "Y" to accept the
new fingerprint.
Here's the workaround:
Run Putty
Host name: github.com
Protocol: ssh
Open
You will be prompted to add this fingerprint. Say yes.
Now that I've added the finger print I can kill the window.

Get the repository – clone
From command line:
git clone g...@github.com:myaccount/the-repository-name.git

Thanks to Jeremy for the direction,

Eric


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Wanstrath  
View profile  
 More options Jul 5 2008, 4:08 pm
From: "Chris Wanstrath" <ch...@ozmm.org>
Date: Sat, 5 Jul 2008 13:08:17 -0700
Local: Sat, Jul 5 2008 4:08 pm
Subject: Re: GitHub and PuTTY - permission denied (pubkey)
Thanks for sharing, Eric!

--
Chris Wanstrath
http://github.com/defunkt

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google