SSH Key Generation

Is there a place to configure the type of key RC generates when requested by the user? In my tests the generated private key can’t be imported into PuttyGen on Windows in order to create Putty’s equivalent .ppk file. PuttyGen displays a message “Couldn’t load private key (unrecognised key type)”.

Note ssh-keygen can take the generated key and convert it to something usable by PuttyGen, so the generated key must be valid… but at that point you may as well just do the generation in ssh-keygen as well!

Thanks

Hi,

There’s no such option at the moment. You could however change the code that is responsible for key generation here:

https://code.rhodecode.com/rhodecode-enterprise-ce/files/778dce3ba753852be8ba4981d596b3e34e5a614a/rhodecode/model/ssh_key.py#L76-83

That did the trick - I changed the format to TraditionalOpenSSL rather than ‘PKCS8’

Thanks