-
Notifications
You must be signed in to change notification settings - Fork 29
Add key format option #96
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
Comments
That's basically just the wrapper for an enum, see examples/keygen.py for how to use the https://github.com/ParallelSSH/ssh-python/blob/master/examples/keygen.py |
Sorry if I wasn't clear when I opened the issue, but that enum if for the key type, not the key format, for example, using the terminal I can do this to generate a RSA key:
or
The key type is the same but the format is different. https://man.openbsd.org/ssh-keygen.1
Do we have a way how to choose a different key format? On the |
Apologies. No, ssh_pki_export_privkey_file_format isn't wrapped by this library. |
I'd like to be able to choose the format of the key I
m generating, for example:
ssh-keygen -m PEM`, but I can't see how to do it on the library.I was also trying other types of rsa keys (Maybe the default format would be the one I'm looking for), and it seems that they don't work:
https://github.com/ParallelSSH/ssh-python/blob/master/ssh/keytypes.pyx#L53-L60
Outputs:
ssh-rsa
Outputs:
unknown
The text was updated successfully, but these errors were encountered: