I'm using Ubuntu and I have a few keys which i'm using to connect to remote machines.
The key I created using ssh-keygen -t rsa
is located in my home folder at ~/.ssh/
and called rsa_id
.
I have another key which is being used by the DevOps team in my company and I want it to become the default key.
I've looked at the file /etc/ssh/sshd_config
and there's this line there:
HostKey /etc/ssh/ssh_host_rsa_key
So I was wondering about two things:
1. When I issue my key using the command specified above, does it copy the content of my newly created key to this file?
2. If I want to change the default key used, shall I add another `HostKey` line and point it to the DevOps key?
Thanks