Change openssh private key order

Michael Sierchio kudzu at tenebras.com
Thu Nov 7 21:31:19 UTC 2019


How many keys?  You can run multiple agents for different hosts or host
patterns in ~/.ssh/config, and specify

IdentityAgent /root/.ssh/S.ssh-agent.ed25519.key


for each

On Thu, Nov 7, 2019 at 12:03 PM Mel Pilgrim <list_freebsd at bluerosetech.com>
wrote:

> I have rsa keys and an ed25519 keys.  They're both made available via an
> ssh-agent.  All keys are in the authorized_keys files of the servers in
> question except for a few legacy cases that only have the rsa keys due
> to lacking ed25519 support.
>
> I want the connections to prefer the ed25519 keys over the rsa keys, but
> looking at debug output, the RSA keys are always tried first.
>
> Is it possible to change the order of precedence for private keys?  If
> so, what option do I set?
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
>


-- 

"Well," Brahmā said, "even after ten thousand explanations, a fool is no
wiser, but an intelligent person requires only two thousand five hundred."

- The Mahābhārata


More information about the freebsd-questions mailing list