Important: Before using the private key, make sure it has the correct permissions.
chmod 600 /path/to/private_key
For example, if you saved the key in the Downloads folder with the name id_ed25519.pem, you should type the command:
chmod 600 Downloads/id_ed25519.pem