Hi All,
I have a private key as an embedded credential in RoyalTS, is it possible to export the public key from this private key to be added to a ssh server. It seems that I can only export the private key from the action menu.
Thanks
Andy
Hi All,
I have a private key as an embedded credential in RoyalTS, is it possible to export the public key from this private key to be added to a ssh server. It seems that I can only export the private key from the action menu.
Thanks
Andy
Hi Andy,
You’re correct—Royal TS currently only supports exporting the embedded private key; it cannot directly derive or export its public key.
As a workaround, export the private key temporarily and use:
ssh-keygen -y -f "C:\path\to\private-key" |
Set-Content -Encoding ascii "C:\path\to\public-key.pub"
For a PuTTY .ppk key, use PuTTYgen:
puttygen key.ppk -O public-openssh -o public-key.pub
You’ll be prompted for the passphrase if the key is protected. Remember to securely remove the temporarily exported private key afterward.
Being able to export the public key directly would be a useful enhancement, so we’ll consider this as a feature request. I will move this post to the feature request category.
Regards,
Stefan