I have learned there are 2 methods to make SSH remote login easier and secure , those are;
ssh generated keys (using ssh-keygen)OpenSSH Keys
PEM (.pem) keys usually generated with OpenSSL (Amazon Web Services uses this method) OpenSSL
my question is that what are the differences of these 2 methods which one is more secure and why is it more secure ?