git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Specifying a private key when connecting to a remote SSH repo
@ 2013-09-11 23:19 Breck Yunits
  2013-09-12  4:39 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Breck Yunits @ 2013-09-11 23:19 UTC (permalink / raw)
  To: git

It would be very helpful if you could specify the path to the private
key to use for ssh remotes just like in ssh.

```
git push origin master -i 'path_to_key'
```

Althought there are workarounds involving ssh config, if you have a
server that has hundreds of git repos, each with the own private key,
those workarounds become unusable.

This is a very popular request with thousands of comments about it, for example:

http://superuser.com/questions/232373/tell-git-which-private-key-to-use

http://stackoverflow.com/questions/3496037/how-to-specify-which-ssh-key-to-use-within-git-for-git-push-in-order-to-have-git

Thoughts?

Thanks!

Breck Yunits
breck7@gmail.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-09-12 17:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-11 23:19 Specifying a private key when connecting to a remote SSH repo Breck Yunits
2013-09-12  4:39 ` Junio C Hamano
2013-09-12  5:19   ` Jeff King
2013-09-12 15:43     ` Junio C Hamano
2013-09-12 17:48       ` Breck Yunits

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).