Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: git + ssh + key authentication feature-request

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:18

Nicolas Vilz 'niv' [off-list ref] writes:
So, how do i tell git to send my identity-file to sshd? And could I
set an alias like in .git/remotes for that location / identity?
That is not a git question but you are using me as an ssh
helpdesk.  See ssh_config(5).

The answers are:

	IdentityFile
        User

For example, I have this in my .ssh/config on my local machine:

    Host osiris.pyramid.com
      User junio
      IdentityFile ~/.ssh/osiris-pub
      ForwardAgent no
      ForwardX11 no

Without "User", it would send out "junkio", so I have that line
to override it (I could do it with -l command line, but there is
no point because that is I would use _always_ to go there).
Without "IdentityFile" it would use ~/.ssh/identity (same
rationale with -i), which is the identity file I usually use for
other sites.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help