# Git Issue/Permission Denied

**URL:** <https://www.ruby-forum.com/t/git-issue-permission-denied/202216>\
**Category:** Rails\
**Created:** [January 24, 2011, 5:44pm UTC](https://www.ruby-forum.com/t/git-issue-permission-denied/202216 "2011-01-24T17:44:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [January 24, 2011, 5:44pm UTC](https://www.ruby-forum.com/t/git-issue-permission-denied/202216/1 "2011-01-24T17:44:01Z")

</div>

Good Day

I followed all instructions on how to get git up and running and still I  
get permission denied

When I run ssh -v removed\_email\_address@domain.invalid to trouble shoot the issue I get

OpenSSH\_5.2p1, OpenSSL 0.9.7l 28 Sep 2006  
debug1: Reading configuration data /etc/ssh\_config  
debug1: Connecting to [github.com](http://github.com) [207.97.227.239] port 22.  
debug1: Connection established.  
debug1: identity file /Users/musdev/.ssh/identity type -1  
debug1: identity file /Users/musdev/.ssh/id\_rsa type 1  
debug1: identity file /Users/musdev/.ssh/id\_dsa type -1  
debug1: Remote protocol version 2.0, remote software version  
OpenSSH\_5.1p1 Debian-5github2  
debug1: match: OpenSSH\_5.1p1 Debian-5github2 pat OpenSSH\*  
debug1: Enabling compatibility mode for protocol 2.0  
debug1: Local version string SSH-2.0-OpenSSH\_5.2  
debug1: SSH2\_MSG\_KEXINIT sent  
debug1: SSH2\_MSG\_KEXINIT received  
debug1: kex: server-\>client aes128-ctr hmac-md5 none  
debug1: kex: client-\>server aes128-ctr hmac-md5 none  
debug1: SSH2\_MSG\_KEX\_DH\_GEX\_REQUEST(1024\<1024\<8192) sent  
debug1: expecting SSH2\_MSG\_KEX\_DH\_GEX\_GROUP  
debug1: SSH2\_MSG\_KEX\_DH\_GEX\_INIT sent  
debug1: expecting SSH2\_MSG\_KEX\_DH\_GEX\_REPLY  
debug1: Host ‘[github.com](http://github.com)’ is known and matches the RSA host key.  
debug1: Found key in /Users/musdev/.ssh/known\_hosts:1  
debug1: ssh\_rsa\_verify: signature correct  
debug1: SSH2\_MSG\_NEWKEYS sent  
debug1: expecting SSH2\_MSG\_NEWKEYS  
debug1: SSH2\_MSG\_NEWKEYS received  
debug1: SSH2\_MSG\_SERVICE\_REQUEST sent  
debug1: SSH2\_MSG\_SERVICE\_ACCEPT received  
debug1: Authentications that can continue: publickey  
debug1: Next authentication method: publickey  
debug1: Trying private key: /Users/musdev/.ssh/identity  
debug1: Offering public key: /Users/musdev/.ssh/id\_rsa  
debug1: Authentications that can continue: publickey  
debug1: Trying private key: /Users/musdev/.ssh/id\_dsa  
debug1: No more authentication methods to try.  
Permission denied (publickey).

What am I doing wrong here? I copied the key under my account correctly,  
I doubled checked this numerous times, even tried regenerating various  
keys and none of them worked.  
Do I need to upgrade to the latest version of Git, Im using 1.6.2.2

Regards

---

<div class="post-metadata">

**Author:** ![devmus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58956e/32.png) [@devmus](https://www.ruby-forum.com/u/devmus)\
**Post date:** [January 24, 2011, 5:58pm UTC](https://www.ruby-forum.com/t/git-issue-permission-denied/202216/2 "2011-01-24T17:58:04Z")

</div>

Ismail H. wrote in post #977180:

> Good Day
> 
> I followed all instructions on how to get git up and running and still I  
> get permission denied

This has nothing to do with Rails. Please ask on a Git support forum.

## Best,

Marnen Laibow-Koser

> **[marnen.org: Homepage of Marnen Laibow-Koser](https://marnen.org/)**

[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![devmus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58956e/32.png) [@devmus](https://www.ruby-forum.com/u/devmus)\
**Post date:** [January 24, 2011, 6:04pm UTC](https://www.ruby-forum.com/t/git-issue-permission-denied/202216/3 "2011-01-24T18:04:33Z")

</div>

On 24 January 2011 16:44, Ismail H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> debug1: Connection established.  
> debug1: kex: server-\>client aes128-ctr hmac-md5 none  
> debug1: SSH2\_MSG\_NEWKEYS received
> 
> What am I doing wrong here? I copied the key under my account correctly,  
> I doubled checked this numerous times, even tried regenerating various  
> keys and none of them worked.  
> Do I need to upgrade to the latest version of Git, Im using 1.6.2.2

It is nothing to do with git, you are just trying to connect with ssh,  
which is failing as github does not recognise your key, I think.

Did you follow [http://help.github.com/linux-key-setup/](http://help.github.com/linux-key-setup/) and  
[http://help.github.com/troubleshooting-ssh/](http://help.github.com/troubleshooting-ssh/)

Colin

---

<div class="post-metadata">

**Author:** ![devmus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58956e/32.png) [@devmus](https://www.ruby-forum.com/u/devmus)\
**Post date:** [January 25, 2011, 3:33am UTC](https://www.ruby-forum.com/t/git-issue-permission-denied/202216/4 "2011-01-25T03:33:11Z")

</div>

Colin L. wrote in post #977187:

> On 24 January 2011 16:44, Ismail H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > debug1: Connection established.  
> > debug1: kex: server-\>client aes128-ctr hmac-md5 none  
> > debug1: SSH2\_MSG\_NEWKEYS received
> > 
> > What am I doing wrong here? I copied the key under my account correctly,  
> > I doubled checked this numerous times, even tried regenerating various  
> > keys and none of them worked.  
> > Do I need to upgrade to the latest version of Git, Im using 1.6.2.2
> 
> It is nothing to do with git, you are just trying to connect with ssh,  
> which is failing as github does not recognise your key, I think.
> 
> Did you follow [http://help.github.com/linux-key-setup/](http://help.github.com/linux-key-setup/) and  
> [http://help.github.com/troubleshooting-ssh/](http://help.github.com/troubleshooting-ssh/)
> 
> Colin

Thanks Colin, I got it to work, I had to change my password to get a new  
token, configured my token in the command line, and it worked  
successfully.

Kindest Regards

---

<div class="post-metadata">

**Author:** ![devmus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58956e/32.png) [@devmus](https://www.ruby-forum.com/u/devmus)\
**Post date:** [January 25, 2011, 3:30am UTC](https://www.ruby-forum.com/t/git-issue-permission-denied/202216/5 "2011-01-25T03:30:55Z")

</div>

Marnen Laibow-Koser wrote in post #977184:

> Ismail H. wrote in post #977180:
> 
> > Good Day
> > 
> > I followed all instructions on how to get git up and running and still I  
> > get permission denied
> 
> This has nothing to do with Rails. Please ask on a Git support forum.
> 
> ## Best,
> 
> Marnen Laibow-Koser  
> [http://www.marnen.org](http://www.marnen.org)  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

My bad Bro

Kindest Regards
