hg equivalent of ssh -i ~/picloud/privatekey.pem?
Anton Shestakov
engored at gmail.com
Fri Nov 4 10:53:20 CDT 2011
2011/11/4 Pierre-Yves David <pierre-yves.david at logilab.fr>:
> On Fri, Nov 04, 2011 at 09:40:08AM -0400, Neal Becker wrote:
>> I need to push to picloud. I can ssh using:
>> ssh -i ~/picloud/privatekey.pem
>>
>> Can hg do something equivalent?
>
> hg help push says:
>
> -e --ssh CMD specify ssh command to use
>
You can also edit .hg/hgrc file in your repo and add:
[ui]
ssh = ssh -i ~/picloud/privatekey.pem
At least, that's what bitbucket help [1] tells in case you want to use ssh keys.
[1]: http://confluence.atlassian.com/display/BITBUCKET/Using+SSH+to+Access+your+Bitbucket+Repository#UsingSSHtoAccessyourBitbucketRepository-OptionalStep4Setupkeypairsforotheraccounts
More information about the Mercurial
mailing list