You are probably using the following command when you are trying to connect to your server through SSH

ssh -i id_rsa_myserver.pub root@server.com

Which is valid but it takes some time to remember which of your several ssh keys is the indicated one for that specific server. Fortunately, there is a simple way save that time.

  1. Within your terminal change the path to your .ssh folder
  2. Create a new file called config using nano config
  3. Inside that file, type the following structure
Host alias
  HostName myserver.com
  User root
  IdentityFile C:\Users\Demo\.ssh\id_rsa
The strong text must be change according your server details. And finally, the command you will use in order to establish the connection is
ssh alias