You shouldn't need a .ssh/config if you're using the defaults.  If `ssh
[email protected]` works but `git push` doesn't, that means git isn't using the
same ssh binary.  On windows that usually means that it's using putty
instead, which is usually caused by that GIT_SSH variable.
Were you using cygwin previous to git?  If not, I'd recommend you try
msysgit (without putty) instead.  It seems to be simpler to work with, and
easier to install.

On Tue, Apr 28, 2009 at 10:04 AM, William Whyte <[email protected]> wrote:

>
> Still no luck:
>
> $ echo $GIT_SSH
>
> $ export GIT_SSH=`which ssh`
> $ echo $GIT_SSH
> /usr/bin/ssh
> $ git push origin master
> Permission denied (publickey).
> fatal: The remote end hung up unexpectedly
>
> FWIW, my ~/.ssh/config file is:
>
> Host github.com
> User git
> Port 22
> Hostname github.com
> IdentityFile ~/.ssh/id_rsa
>
> William
>
>
>
> On Apr 27, 2:40 pm, Tekkub <[email protected]> wrote:
> > 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/d172dc17c1.
> ..
> > > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to