Created
December 21, 2019 04:46
-
-
Save blpabhishek/f3f990a79905ac0b2ed017c2828d2c57 to your computer and use it in GitHub Desktop.
ssh key encryption
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-keygen -m PEM -t rsa -b 4096 | |
openssl rsa -in identity -pubout | |
echo content | openssl rsautl -encrypt -pubin -inkey identity.pub.pem > ciphertext.txt | |
openssl rsautl -decrypt -inkey identity -in ciphertext.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment