On 4/28/11 5:01 PM, Steve Borho wrote: > On Thu, Apr 28, 2011 at 6:21 PM, Kurt Granroth > <[email protected]> wrote: >> I'm seeing a very odd problem with a co-worker's system. Basically, >> when connecting to a repo using ssh, his TortoiseHg (2.0) always uses >> the same user *and* misformats the remote call. http access works fine >> as well as his setup on a different computer. >> >> We're using 'mercurial-server' on the shared server so all access if via >> the 'hg' user. A typical clone would look like so: >> >> hg clone ssh://[email protected]/dev/project >> >> This is what happens on the command line: >> >> hg --verbose clone ssh://[email protected]/dev/project >> running ""TortoisePlink.exe" -ssh -2 [email protected] "hg -R >> dev/project serve --stdio"" >> remote: mercurial-server: illegal command '[email protected] hg -R >> dev/project serve --stdio' >> abort: no suitable response from remote hg! >> >> Why is it prepending the user and host to the remote command? >> >> So maybe it's something wrong with mercurial-server, I think, and so I >> have home access a different URL on the same system. This is what we get: >> >> hg --verbose clone ssh://[email protected]/dev/project >> running ""TortoisePlink.exe" -ssh -2 [email protected] "hg -R >> dev/project serve --stdio"" >> remote: mercurial-server: illegal command '[email protected] hg -R >> dev/project serve --stdio' >> abort: no suitable response from remote hg! >> >> But wait!! Only the 'hg' user is tied to mercurial-server. That >> shouldn't (and doesn't) run with any other user on that system. Also, >> this person doesn't have an SSH key for 'user' on that machine and so >> this should have failed during authentication. >> >> So basically, TortoiseHg (via TortoisePlink) is always authenticating >> using the 'hg' user, even if the URL specifies a different user *AND* is >> sending an incorrectly formatted remote command. > > Looks like Putty is eating your lunch > > See http://tortoisehg.bitbucket.org/manual/2.0/faq.html > > Specifically the item that starts with "Why can’t I connect to an ssh server"
That's it! Thank you! Funny, I tried almost everything *but* the hostname when trying to reproduce this. I created sessions with the same name as the server name. I created sessions with the same name as the user@server. I updated the Default Settings to include 'hg' as the Auto-login user. Nothing reproduced the problem. Apparently I needed to just take *one* more step and save the hostname in the Default Settings, too. Thanks again. ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Tortoisehg-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

