Necessity of transferring PEM file to server

by kangarooo   Last Updated June 13, 2019 11:00 AM

Recently I've read the following about configuring ec2 instance:

"First up, transfer your private key (*.PEM) file over to the Linux server using and SCP tool. In my case, I always use WinSCP to achieve this. It’s a simple tool and pretty straightforward to use. Once the key is transferred, run the following command to change the key’s permissions: #chmod 400 <Private_Key>.pem "

Is it really necessary to keep PEM file on the instance? How it can be useful? Because I can connect to the instance without transferring it.

Related Questions

Updated March 24, 2017 09:00 AM

Updated November 06, 2017 07:00 AM

Updated April 02, 2015 19:00 PM

Updated May 08, 2019 18:00 PM