Could someone please explain connecting to an EC2 instance via SSH? You generate a key pair. But I don’t understand how this proves my identity. Moreover, I don’t know what either "SSH uses the private key" or "EC2 instance uses the public key" mean. Thanks.
A Private key is a key that is associated to you as the user, you must keep this secured safely and encypted. A private key can decrypt a message from a server and send it back for verification. A public key is used to encrpyt a message from the server and send it to the client (e.g. you the user). I hope this helps answer your question but there are a lot if links online that you can look at as well about SSH keys.