threads / discuss / 23567

SSH keys location

Subject: SSH keys location

## tl;dr

2 messages between Apr 22, 2010 and Apr 22, 2010.

replies: 1people: 2as markdown or json

Mahesh Vaidya· Apr 22, 2010, 18:40 UTC · lore
Hi

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
Thank You
-Mahesh
Shawn O. Pearce· Apr 22, 2010, 18:42 UTC · re: Mahesh Vaidya · lore

Re: SSH keys location

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.

← back to recent threads