hg: added --ssh to specify which SSH binary to use

Thomas Arendsen Hein thomas at intevation.de
Thu Aug 18 16:28:05 CDT 2005


* Perez-Gonzalez, Inaky <inaky.perez-gonzalez at intel.com> [20050818 23:15]:
> >From: mercurial-bounces at selenic.com On Behalf Of Thomas Arendsen Hein
>
> >Usually one will only need a .hgrc option, because either you have
> >ssh in a strange path, or you don't have it. Special options to ssh
> >can be given via the ~/.ssh/config file.
> 
> The main reason I need this for is because many times I have my repos
> in remote machines and I push them from a cron job; to avoid having to
> expose my private keys, I create a self-executing one with a dedicated
> key (http://www.kitenet.net/~joey/sshcvs/sshanoncvs more info about it
> in the parent http://www.kitenet.net/~joey/sshcvs/) and then add
> a in dsthost:authorized_keys:

Look at that page you mentioned more closely:

2. Or you can just use the file as a ssh key file without making it
   executable. Download it, set its permissions to 600, and put it in
   ~/.ssh/sshanoncvs. Then add the following to your ~/.ssh/config:

   Host cvs.kitenet.net
   User cvs
   IdentityFile ~/.ssh/sshanoncvs
   ForwardAgent no
   ForwardX11 no
   Compression yes

This is what I meant.

You can even do:

   Host specialaliasonlyforhg
   HostName real.hostname.of.hg.repo.example.com
   IdentityFile ~/.ssh/sshanoncvs
   ...

Thomas

-- 
Email: thomas at intevation.de
http://intevation.de/~thomas/


More information about the Mercurial mailing list