0

I have both rsa and ed25519 keys on my local machine as well as on a remote one. I've also added both local public keys to authorized_hosts file of a remote machine. When I'm connecting to the remote machine via "ssh [email protected], how do I know whether it's using the rsa or ed25519 key? How can I change that?

3
  • Have you tried ssh -v MyUser@MyHost? Aug 1, 2017 at 8:16
  • @AlexStragies, how can I force it to use ed25519?
    – Kommi
    Aug 1, 2017 at 8:38
  • 1
    @Kommi use -i for specifying an identity file. It's all in man ssh....
    – FelixJN
    Aug 1, 2017 at 8:56

1 Answer 1

1

How to find out if “ssh [email protected]” if rsa or ed25519 key is being used if I have both?

Run the client in debug mode. That is, use -vvv switches. The output will answer your question.

how can I force it to use ed25519? – Kommi 3 hours ago

Use the -i switch, or the IdentityFile option of ssh_config. If it will not work and it will still pick up the default identities, use IdentitiesOnly option, which will ignore the default identities and use the one you specify.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .