Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: Using ssh-keygen as advertised did not seem to generate usable key pairs #126

Open
mhearne-usgs opened this issue Jul 24, 2020 · 1 comment

Comments

@mhearne-usgs
Copy link
Member

Doing this:

ssh-keygen -t dsa -b 1024 -C 'Comment describing key' -f <keyfilename>

caused errors in the PDL client like this:

Invalid PEM structure, '-----BEGIN...' missing

Substituting the command:

openssl genrsa -out mykey.pem 4096

instead seemed to solve the problem.

The pdl documentation should be updated to reflect this.

It might also be nice to know why the old way stopped working. :)

@jmfee-usgs
Copy link
Contributor

I think this is from using a newer version of ssh-keygen, which uses an OPENSSH format. Adding -m PEM to the command should use the original format.

ssh-keygen -t rsa -b 4096 -C '<comment>' -f <keyfilename> -m PEM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants