I used ssh-keygen -t rsa to generate a pair of keys. The public key is stored in the file "id_rsa.pub", which contains "ssh-rsa AAA...idJ [email protected]".
Then I used ssh-keygen -y (mentioned in how can I check my rsa passphrase?) to get the SSH public key. However, the public key obtained using this method contains "ssh-rsa AAA...idJ" only. (i.e. it does not have the last part " [email protected]")
I would like to ask why is there a difference in the public key generated via these two methods.