Specifying SSH Key

Stephen Rasku mercurial at srasku.net
Mon Jul 27 23:02:48 CDT 2009


On Mon, Jul 27, 2009 at 05:58, Martin Geisler<mg at lazybytes.net> wrote:
> Axel Hecht <l10n.moz at googlemail.com> writes:
>
>> You can also specify it in ~/.ssh/config, man ssh_config. I use, for
>> example,
>>
>> Host bitbucket.org
>> User hg
>
> Related to this, I have
>
> Host bb
> HostName bitbucket.org
> User hg
> Compression yes
>
> in my file -- that allows me to push to ssh://bb/mg/... type URLs.

I was trying to do it this way but I wasn't able to get it to work.
Until now, that is.  I changed the IdentityFile from

    IdentityFile $HOME/.ssh/file_rsa

to

    IdentityFile /home/user/.ssh/file_rsa

In retrospect this makes sense.  Apparently .ssh/config doesn't
interpolate variables.

...Stephen


More information about the Mercurial mailing list