

Now, you can see that, since plink doesn't parse the hostname correctly, I had to specify the port number and username in the mercurial.ini file, instead of in the hostname like :# like you'd expect to. So I am at a loss as to how plink gets this server value at all.įor "fun", I tried using TortoiseHg and can only clone a repo when I use ssh://!/Repos/test as the Source. My only guess is that it somehow defaults to the last server I used PuTTY to SSH to, but I SSH'd into another server, and then tried to use plink to get to it, but plink still defaults to (verified with the -v arg to plink). They all use an address, which makes sense, so you can connect to any repo via ssh that you want to clone. None of the hg clone examples I've seen have a ! character. neither my mercurial.ini nor the command specify a server. What I really don't understand is how plink knows what server to ssh to at all. ! is the character I've found that let's me leave the hostname blank, but specify the repo folder to clone.
Mercurial windows ssh key how to#
I fiddled around for a while trying to figure out how to do call hg clone with an empty ssh:// field and eventually figured out that this command allows me to reach the server and clone a test repo on the server: So now it looks like plink doesn't parse the hostname correctly. I enter them both and then I get this error:īash: ssh://: No such file or directory Next, I tried to just use plink to connect by plink -P # ssh://, and I am then prompted for my username, and next password. It looks like hg or plink parses the hostname such that it thinks that is a command instead of the server to ssh to. Remote: bash: : command not foundĪbort: no suitable response from remote hg! I try to do the command hg clone ssh:// but I get this error: # is filled in with the non-standard ssh port I've defined for copSSH. Username is filled in with the username I set up via copSSH. I've seen elsewhere that you need to have ssh configured in your mercurial.ini file, so my mercurial.ini has a line: ssh = plink.exe -ssh -C -l username -P # -i "C:/Program Files/PuTTY/Key Files/KyleKey.ppk" Next, I wanted to use the CLI to connect via hg clone to get a private repo. I can connect to the server using PuTTY with a non-standard ssh port and a.
Mercurial windows ssh key windows 7#
To connect to it, I have a Windows 7 machine with Mercurial 1.5.1 (and TortoiseHg) installed. I have a Windows Server 2008 machine (iis7) that has CopSSH set up on it.
