1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues

Issues

Issue #374 resolved

SSH problem on windows

Evgeniy Sharapov
created an issue

I have mercurial set up with ssh on windows XP. As ssh client I use plink

Here's my .hgrc

{{{

[ui] username=Evgeniy Sharapov evgeniy.sharapov@gmail.com ssh=C:/tools/putty/plink -ssh -i "C:\Documents and Settings\xxxxx\Application Settings\ssh-private-key.ppk"

[http_proxy] host=some.proxy.server:8080 server. passwd=xxxxx user=xxxxx

}}}

When I do push

{{{ C:\Temp\conf-emacs>hg -v push ssh://hg@bitbucket.org/evgeniysharapov/conf-emacs/ running "C:/tools/putty/plink -ssh -i "C:\Documents and Settings\xxxxx\Application Settings\ssh-private-key.ppk" hg@bitbucket.org "hg -R evgeniysharapov/conf-emacs/ serve --stdio"" remote: FATAL ERROR: Network error: Connection timed out abort: no suitable response from remote hg!

}}}

Comments (11)

  1. Jesper Noehr
    • changed status to open

    Masked them out now.

    The error seems to boil down to remote: FATAL ERROR: Network error: Connection timed out, which indicates the network connection fails. The command Hg tries to run on our end looks correct.

    If you try fiddling with the command manually until you actually get a connection to us, and then updating your hgrc to reflect that, then it should work.

    E.g, try running this in a shell:

    C:/tools/putty/plink -ssh -i "C:\\Documents and Settings\\xxxxx\\Application Settings\\ssh-private-key.ppk" hg@bitbucket.org "ls"
    

    ...and change things around until you get a reply saying "Invalid command syntax" from our server.

    HTH

  2. Evgeniy Sharapov reporter

    Used OpenSSH for windows that comes with MsysGit

    C:\test>hg clone ssh://hg@bitbucket.org/evgeniysharapov/conf-emacs
    remote: ssh: connect to host bitbucket.org port 22: Bad file number
    abort: no suitable response from remote hg!
    

    verbose output

    C:\test>hg clone -v ssh://hg@bitbucket.org/evgeniysharapov/conf-emacs
    running "ssh -C hg@bitbucket.org "hg -R evgeniysharapov/conf-emacs serve --stdio""
    remote: ssh: connect to host bitbucket.org port 22: Bad file number
    abort: no suitable response from remote hg!
    

    At the same time, when I am using Git

    I am getting

    C:\test>git clone git://github.com/technomancy/emacs-starter-kit.git
    Initialized empty Git repository in C:/test/emacs-starter-kit/.git/
    github.com[0: 65.74.177.129]: errno=No such file or directory
    fatal: unable to connect a socket (No such file or directory)
    

    I think that it's some SSH settings related to proxy server.

  3. Evgeniy Sharapov reporter

    Ok. I did. Then I configured proxy:

    Host bb
      User hg
      HostName bitbucket.org
      Port 443
      ProxyCommand connect -H proxyusername:proxypassword@proxy.server.com:8080 %h %p
    

    and now trying to connect to bitbucket:

    C:\test>ssh hg@bitbucket.com "ls"
    ssh: connect to host bitbucket.com port 22: Bad file number
    
    C:\test>ssh hg@bitbucket.com:80 "ls"
    ssh: bitbucket.com:80: no address associated with name
    
    C:\test>ssh hg@bitbucket.com:443 "ls"
    ssh: bitbucket.com:443: no address associated with name
    
    C:\test>ssh -p 443 hg@bitbucket.com "ls"
    ssh: connect to host bitbucket.com port 443: Bad file number
    
    

    I can't make ssh work through this proxy.

    Thing is when I use https it returns me:

    C:\test>hg -v clone https://evgeniysharapov@bitbucket.org/evgeniysharapov/conf-emacs/
    (falling back to static-http)
    abort: requirement '<HTML></HTML>' not supported!
    
  4. Anonymous

    Hi all..this is something I wish to achieve Run ls such that nothing gets diplayed nor the output gets stored in a file. Can you all please suggest something with bit bucket for it.

  5. Log in to comment