I am trying to convince ssh to use my ed25519 id file whenever possible. In order to achieve this and according to this stackexchange question and the man page which states
It is possible to have multiple identity files specified in configuration files; all these identities will be tried in sequence.
I tried to set up this order by having
IdentityFile ~/.ssh/id_ed25519
IdentityFile ~/.ssh/id_rsa
IdentitiesOnly yes
in the beginning of my ~/.ssh/config
however this order of appearance is not honored by ssh. I am always connecting via rsa
debug1: Offering public key: RSA SHA256:
Removing id_rsa from config file works though
debug1: Offering public key: ED25519 SHA256:
Well—forwarding authentication agent via ssh -A
still connects via ed25519 but the connection from the ssh hop host to the destination will use rsa again
How can I make ssh use a specific id_key file when forwarding?
Update: Since things are perfectly working after a reboot this is no longer an issue although still riddling me. Maybe ssh-agent just needed a restart but that’s just a wild guess.