The ssh public keys in authorized_hosts
have three parts - a type, the key and a name. For example, an rsa
key might look like:
ssh-rsa gn29JyDdiyLFlggptrCxgzS6diAF6o94Dtg<abbreviated>oF9grbm7g+Mtrly NAME1
Will the same key be valid with a different name, e.g.:
ssh-rsa gn29JyDdiyLFlggptrCxgzS6diAF6o94Dtg<abbreviated>oF9grbm7g+Mtrly NAME2
What I've tried:
I tried changing the name part on the receiving env, and the authentication worked as usual
I wonder if there is a solid reference that mentions that the name is not a part of the authentication process in any scenario - I couldn't find it in the manual.
Update:
Thanks for the answers and comments. I think this question is not off topic, because the terms I have searched are different than the ones on the documentation (name vs. comment). Therefore, this question might be a useful point of entrance to searches on this topic in the future.