SSH keys location

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

SSH keys location

From: Mahesh Vaidya <hidden>
Date: 2016-06-15 22:48:41

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

Re: SSH keys location

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:48:41

Mahesh Vaidya [off-list ref] 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help