strange place of .ssh
Giorgos Keramidas
keramida at ceid.upatras.gr
Tue Apr 9 14:24:19 UTC 2013
On 2013-04-09 00:12, Kirill Krasnov <krasnovforum at gmail.com> wrote:
> Hi.
> I reinstall system and don't understand why I can't clone/push my repo
> in bitbucket (I backup/restore my private and public key). Mercurial
> say that I have bad public key, but all repos in git work fine... Try
> solve this problem I found that that command hg clone ssh://....
> create folder .ssh not in c:/users/kkrasnov/.ssh (folder already
> exist), but in d:/pers/git/.ssh (folder where I have installed
> msysgit). And I can't say mercurial, that work-folder .ssh in my
> c:/users/kkrasnov
You can point ssh to the right path with:
ssh -i path_to_key_file remotehost ...
Passing that to Mercurial is possible through the --ssh option:
hg --ssh="ssh -i d:/pers/git/.ssh/key_file"
The real problem is why the ssh.exe binary that's in your path
tries to read SSH keys from the wrong place, but I don't know
enough about msysgit or SSH in Windows to help more.
More information about the Mercurial
mailing list