strange place of .ssh
Kirill Krasnov
krasnovforum at gmail.com
Tue Apr 9 18:35:40 UTC 2013
Hi, Giorgos.
You wrote Tuesday, April 9, 2013, 5:24:19 PM:
> 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.
Thanks, Giorgos.
Today at 2 o'clock (after 4 hours) I solve problem. My homedir not set
property in system. In windows %userprofile% and other work fine.
After I add in system homedir to my userprofile, ssh see folder and
keys.
Thanks one more
--
Best regards,
Kirill
http://www.kraeg.ru/
More information about the Mercurial
mailing list