Articles related to real life scenarios involving java, frameworks and libraries configurations and salt-stack. The topics includes Core Java, Hibernate, Spring MySQL, Multithreading, Java NIO, jQuery, c3p0, Connection pooling, salt state, pillar, grain etc.

Sunday, July 15, 2018

Protect your AWS key/Private key with passphrase

12:37 AM Posted by Unknown No comments

Protect your aws key with passphrase

All of us have faced this, when you generate a new key from AWS. It does not have passphrase to it. One should never use keys without passphrase, it is a huge security risk.
Here's how to add passphrase to any existing key file. Just run the following command and enter the passphrase twice.
Note: Make sure to remember passphrase, if you forget you will lose access to all the instances using the key.
ssh-keygen -p -f somekey.pem
The output will be the following.
Enter new passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved with the new passphrase.

0 comments:

Post a Comment