login about faq

I have a private key in Tectia format.

How can I convert it to a private key in OpenSSH format so that it can be used with for example OpenSSH clients?

asked Mar 08 '12 at 23:59

SSH%20KB's gravatar image

SSH KB ♦
509249246237


If the private key is not passphrase protected just use the OpenSSH keygen import:

ssh-keygen -i -f my_tectia_privatekey

This will print the private key in OpenSSH format to stdout.

If the Tectia private key is passphrase protected you'll need to remove the passphrase first using Tectia keygen (just press enter when prompted for New passphrase):

$ ssh-keygen-g3 -e my_tectia_privatekey 
Passphrase needed for key "My Tectia Private Key".
Passphrase : 
Do you want to edit key "" (yes or no)? yes
Your key comment is "My Tectia Private Key". Do you want to edit it (yes or no)? no
Do you want to edit passphrase (yes or no)? yes
New passphrase : 
Again          : 
Do you want to continue editing key "" (yes or no)? no
Do you want to save key "" to file my_tectia_privatekey (yes or no)? yes

Then follow the same step as above for unencrypted private keys.

ssh-keygen -i -f my_tectia_privatekey > my_openssh_privatekey

Finally, encrypt the key again with a passphrase using OpenSSH keygen:

ssh-keygen -p -f my_openssh_privatekey
link

answered Mar 09 '12 at 00:09

Roman's gravatar image

Roman ♦♦
7735817

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×5
×3

Asked: Mar 08 '12 at 23:59

Seen: 4,708 times

Last updated: Mar 09 '12 at 00:09

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.