GitHub authentication proves your identity when interacting with a remote repository. Over HTTPS, GitHub no longer accepts the account password but a personal access token. With SSH, you use a key pair: the public key is registered on the account and the private key stays secret.
Example
ssh-keygen -t ed25519 -C '[email protected]'