I have got a file myfile-privkey.pem
.
How do I check if the private key file is password protected using ssh-keygen?
ssh-keygensslssl-certificate
I have got a file myfile-privkey.pem
.
How do I check if the private key file is password protected using ssh-keygen?
Best Answer
If the key is password protected, you will see a "password:" prompt.
The flags in this command are:
As extra guidance, always check the command someone, especially online, is telling you to use when dealing with your private keys.