Re: SSH keys location
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Apr 22, 2010, 18:42 UTC
- Message-ID
- <20100422184239.GA29426@spearce.org>
- In-Reply-To
- <v2rb42431c81004221140n31c76030m74656d01950b8ae0@mail.gmail.com>
Mahesh Vaidya <forvaidya@gmail.com> wrote:
Show 7 quoted lines
> I have a situation where I must save my private keys location other > than ~/.ssh ; How do I tell git URL that please take public key from > so and so location equivalent of ssh -i <identity-file> flag > > example my clone command is > > git clone gitosis@server:repos.git
Just use ~/.ssh/config to rewrite the options:
Host server
IdentityFile /some/private/key/path-- Shawn.