id_rsa is, normally a default identity. However, I've created a new key and I would like to add that key as a default identify instead.
How can we do that?
Thanks a lot in advance.
In your ~/.ssh/config file (create it if it doesn't already exist), you can specify which key to use with the IdentityFile directive:
You can use this directive inside a "Host" section if you only want to use that key for a particular host. For example:
If you run "ssh -v hostname", the debug information should confirm that it is using the key you specified.