note about ssh-keygen
Convert OpenSSH RSA or DSA key to PEM format
RSA to PEM
# First create an RSA key using OpenSSH tools:
$ ssh-keygen -t rsa
# Then converted it to PEM format:
$ openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem
DSA to PEM
# First create an DSA key using OpenSSH tools:
$ ssh-keygen -t dsa
# Then converted it to PEM format:
$ openssl dsa -in ~/.ssh/id_dsa -outform pem > id_dsa.pem
Written by cppgohan
Related protips
2 Responses

Use the -f
argument of ssh-keygen
to avoid using the default path ~/.ssh/id_rsa
.
over 1 year ago
·

What's the benefit of PEM format over DSA/RSA?
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ssh-keygen
Authors
Related Tags
#ssh-keygen
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#