While trying to give an host a bit more of security, i decided to switch to SSH key's authentication. To do so i followed this guide, but something makes no sense in my mind.
While the host is the one with the public key, if it is compromised, the attacker would find something like user@host, typed in plain text inside of it's public key, clearly indicating where the private key was made, and probably is.
I mean this:
ssh-keygen -t ecdsa -b 521 -C "$(whoami)@$(hostname)-$(date -I)"
Or to be more precise, this:
Why would someone want this information inside of the key?