Check that the GIT_SSH environment variable isn't set to the wrong ssh
program. Username doesn't matter, that is figured out from the key you
connect with.
Tekkub
GitHub Tech Support
http://support.github.com/
Join us on IRC: #github on freenode.net
Discussion group: [email protected]
On Mon, Apr 27, 2009 at 11:27 AM, William Whyte <[email protected]> wrote:
>
> Hi everyone,
>
> I'm having a problem very similar to the problem described at
>
> http://groups.google.com/group/github/browse_thread/thread/d172dc17c1f65344/dd8758a76eb8e132?lnk=gst&q=cygwin+ssh#dd8758a76eb8e132
> but the solution in that thread isn't working for me.
>
> I'm using Cygwin, with the version of git that came with it, on
> Windows XP. The git version number is 1.6.1.
>
> Following the instructions on github, I'm doing the following:
>
> mkdir <project>
> cd <project>
> git init
> touch README
> git add README
> git commit -m 'first commit'
> git remote add origin [email protected]:name/<project>.git
> git push origin master
>
> and get this response:
> $ git push origin master
> Permission denied (publickey).
> fatal: The remote end hung up unexpectedly
>
> This is ordinarily an ssh problem. However, I am able to ssh to github
> successfully:
>
> $ ssh [email protected]
> PTY allocation request failed on channel 0
> Hi wwhyte! You've successfully authenticated, but GitHub does not
> provide shell
> access.
> Connection to github.com closed.
>
> (I could provide the output of ssh -v, but it essentially leaves us in
> the same place).
>
> I've searched, and I haven't found any discussion online of what to do
> if ssh works but git doesn't.
>
> My only idea is that this might be case-sensitivity. My username on
> this laptop is WWhyte, but my github username is wwhyte. Might this be
> the problem?
>
> All help appreciated.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GitHub" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/github?hl=en
-~----------~----~----~----~------~----~------~--~---