Trying to use an ssh key to a server which has different host names works with some host names, but not with others?
Is there some reason why ssh would work that way?
E.g. say hostname1.com and hostname2.com point to IP address 220.127.116.11.
ssh -i ~/.ssh/keyname email@example.com,
ssh -i ~/.ssh/keyname firstname.lastname@example.org't.
ssh -i ~/.ssh/keyname 18.104.22.168works.
Another interesting point is when I try to use
ssh-copy-id to send the public key again via
ssh-copy-id is able to login and discover that the public key is already present in the
authorized_keys file without my having to provide the password for the connection which means that there is a difference between
ssh-copy-id which causes
ssh to prompt for the password.