git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.
Previous: Mahesh Vaidya
Message 2 of 2 in “SSH keys location”
  1. Mahesh VaidyaApr 22, 2010
  2. Shawn O. PearceApr 22, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.