Re: How to use ssh -i with a key from ssh-agent rather than from a file?

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Wed, 30 Sep 2020, raf wrote:

> Thanks. That's brilliant.
> It should get a mention in the manpage.
> I've attached a patch for ssh.1.
> 
> However, I've just tried it and it didn't work for me. :-(
> 
>   $ git config core.sshcommand
>   ssh -i ~/.ssh/id_ed25519_github2

Personally, I find it easier to use ~/.ssh/config for this sort of
configuration:

Host github.com
	User git
	IdentityFile ~/.ssh/id_ed25519_github2
	IdentitiesOnly yes # Don't use other keys in agent or on disk

You can then also "ssh -vvv github.com true" to see what is going wrong.

-d
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux