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

GIT over ssh with identity file

From
Ooliverw <oliver@weichhold.com>
Date
Feb 4, 2009, 08:37 UTC
Message-ID
<21826348.post@talk.nabble.com>

Forgive me if this has been answered before. I've searched everywhere but couldn't find a solution.

Is it somehow possible to pass your private key file to git when working over ssh. What I have in mind would be something like this:

git -i /path/to/private/key clone ssh://homer@foo.bar.com/var/git/repos.git 

Since I want to use this on a server I would like to avoid using a password caching agent at all cost.

-- 
View this message in context: http://www.nabble.com/GIT-over-ssh-with-identity-file-tp21826348p21826348.html
Sent from the git mailing list archive at Nabble.com.
Next: Junio C Hamano
Message 1 of 4 in “GIT over ssh with identity file”
  1. oliverwFeb 4, 2009
  2. Junio C HamanoFeb 4, 2009
  3. Matthieu MoyFeb 4, 2009
  4. Junio C HamanoFeb 4, 2009

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.