Subject: Re: SSH keys location

From: "Shawn O. Pearce" <[email-masked]>
Date: Thu, 22 Apr 2010 11:42:39 -0700

Mahesh Vaidya <[email-masked]> wrote:
> 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.