Cannot push with TortoiseHg

579 views
Skip to first unread message

BrenBarn

unread,
Feb 15, 2012, 3:28:40 AM2/15/12
to hg-git
I am trying to set up hg-git so it will work with TortoiseHg (on
Windows). I cannot figure out what path to enter as the remote repo
path in order to push. I can't find any explicit documentation saying
"this is what you need to set as the remote path". I have tried
git://github.com/myproj/someproj.git, ssh+git://github.com/myproj/
someproj.git, ssh+git://g...@github.com/myproj/someproj.git, etc. In
all cases, I either get a popup saying "Disconnected: no supported
authentication methods available" or I get an error in the console
saying "You can't push to git://github.com/amundo/notebook.git, Use
g...@github.com:amundo/notebook.git" or "abort: getaddrinfo failed".

How can I push to a get repo using TortoiseHg?

Thanks.

Steven Caron

unread,
Feb 15, 2012, 1:40:45 PM2/15/12
to hg-...@googlegroups.com
outlined here...


this works for me on windows 7

BrenBarn

unread,
Feb 15, 2012, 4:49:13 PM2/15/12
to hg-git
On Feb 15, 10:40 am, Steven Caron <car...@gmail.com> wrote:
> outlined here...https://bitbucket.org/durin42/hg-git
>
> git+ssh://...@github.com/schacon/hg-git.git
>
> this works for me on windows 7

It doesn't work for me (on Windows XP). If I copy and paste the URL
from that page and use TortoiseHg Clone to try to clone "git+ssh://
g...@github.com/schacon/hg-git.git", I receive a popup error window
saying "Disconnected: no supported authentication methods available".
I get the same error with any repository I try in place of "/schacon/
hg-git.git".

BrenBarn

unread,
Feb 15, 2012, 7:34:55 PM2/15/12
to hg-git
Okay, I was able to get it working by following the instructions here:
http://www.gutgames.com/post/Setting-Up-Hg-Git.aspx

Specifically, I had to do all that stuff about creating an SSH key and
uploading it to GitHub. After looking at this, I googled a bit and
found a few other pages where people said it didn't work until they
did variations on this. If this is actually required to use hg-git,
shouldn't it be mentioned on the page you linked to above?

Keshav Kini

unread,
Feb 15, 2012, 11:25:19 PM2/15/12
to hg-...@googlegroups.com
The SSH key transfer is a requirement of using GitHub, not of using hg-git. To use hg-git to connect to git repository hosted over ssh (i.e. using a git+ssh:// URL with hg-git), all you need is some form of SSH access to the machine in question, though a graphical client might become confused if that form of access is "type your password in the terminal". I don't know how TortoiseHg handles this, though I imagine it should be robust enough to do so.

GitHub is special in this regard because it does not allow password prompt based logins, only public key based logins, which is why you need to set that up.

-Keshav

Lester Caine

unread,
Feb 16, 2012, 6:05:58 AM2/16/12
to hg-...@googlegroups.com

In hindsight we should probably have spotted your problem Bren, but I certainly
remember having to jump through that hoop before getting around to using hg-git
so had not linked the two ;) Where I have local ssh set up things just work as
well ... but perhaps some of the 'guides' do need a little extra note about ssh
authentication problems?

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

Alexander

unread,
Feb 16, 2012, 2:03:41 PM2/16/12
to hg-git


On Feb 16, 5:05 pm, Lester Caine <les...@lsces.co.uk> wrote:
> but perhaps some of the 'guides' do need a little extra note about ssh
> authentication problems?

I used James McKay's guide from http://jamesmckay.net/2010/06/tortoisehg-as-a-github-client-on-windows/
and got all working in seconds (troubles wasn't related to
authentification)

Lester Caine

unread,
Feb 16, 2012, 5:59:02 PM2/16/12
to hg-...@googlegroups.com
Alexander wrote:
>> but perhaps some of the 'guides' do need a little extra note about ssh
>> > authentication problems?
> I used James McKay's guide fromhttp://jamesmckay.net/2010/06/tortoisehg-as-a-github-client-on-windows/

> and got all working in seconds (troubles wasn't related to
> authentification)

Now that is a well written guide and seems to cover everything :)
Provided that you don't have ssh installed from any other source it should just
work out of the box.

My own problem was more one of having a pre-existing ssh setup for remote access
to secure sites I work with, and which git's own windows setup simply disabled
requiring a very fast backtrack to ensure access was restored. Once configured
for github, my Putty based setup just needed plink adding as the ssh prog in Hg
to get things working.

On the other hand 'PowerDesk' needed to be removed before TotoiseHg would run
without crashing file explorer :( And that was providing the secure ftp
interface to the remote sites ...

Reply all
Reply to author
Forward
0 new messages