How to set passphrase for a server key.
Do you want to secure your key with a passphrase?, It’s very simple. For example, if you have server on the aws, Generally, it’s a key authentication.
How to set passphrase for a server key.
ssh -i yourkey.pem [email protected] -v
So you want to set the passphrase?
ssh-keygen -p -f yourkey.pem
Type the passphrase you want to set
That’s all, Once it’s updated,it asks you for the passphrase when login to the server like this
debug1: key_parse_private2: missing begin marker debug1: key_parse_private_pem: PEM_read_PrivateKey failed debug1: read PEM private key done: type <unknown> Enter passphrasefor 'yourkey.pem':
Thanks