PDA

View Full Version : How to import private key from SecureCRT to linux ssh ?


hustmck
07-06-2005, 02:53 AM
For some time I used secureCRT to connect through ssh to unix hosts.
Now I switched to use Linux fedora4 but WindowsXp.
My question is how can I import private key from securecrt file into openssh? I know that I can generate new
private-public key and distribute newly created public key
to hosts I usually connect, but would like to save my effort
if there is a way to transfer private key from secureCRT to openssh.

DavidW
07-06-2005, 01:54 PM
To add a SecureCRT .pub into the right format for ~/.ssh/authorized_keys when OpenSSH is being used

ssh_keygen -Xf key.pub >> ~/.ssh/authorized_keys

works for me.



David

hustmck
07-06-2005, 09:32 PM
Thank you David,
It it's not the .pub's problem, it about Identity not Identity.pub.

To add a SecureCRT .pub into the right format for ~/.ssh/authorized_keys when OpenSSH is being used

ssh_keygen -Xf key.pub >> ~/.ssh/authorized_keys

works for me.



David

My problem occured on my client end not the OpenSSH server.
I can not use Identity file on my fedore4 laptop.
Is there any software like securecrt on linux, I have to switch from windowsxp to linux sometimes.

Thanks

bocks
07-07-2005, 11:15 AM
Thank you David,
It it's not the .pub's problem, it about Identity not Identity.pub.



My problem occured on my client end not the OpenSSH server.
I can not use Identity file on my fedore4 laptop.
Is there any software like securecrt on linux, I have to switch from windowsxp to linux sometimes.

Thanks
Hello hustmck,

The problem that you are seeing is due in part to the way the SSH draft defines keys. The public key format is well defined and standardized by the IETF draft, whereas the private key format is not.

The private key format was not defined specifically, but left to the individual developers. Because of this, each developer writes their private key in a format that meets their needs. This means that the private keys are not going to be readable by another developers software.

With OpenSSH, we have the ability to read both the public and private keys because the format is known. This means that SecureCRT can use both the public and private keys generated by OpenSSH. But SecureCRT can not export to OpenSSH.

We have had people request this ability to be added to SecureCRT. If you would like to be notified if a version of SecureCRT is released with this ability, please send an email to Support@vandyke.com with a subject of Attn: Shannon Re: Forum Thread #3919

Please include your contact information so that we can contact you when a version of SecureCRT that has the ability to export/import public and private keys becomes available.

Thanks,

-bocks

pihes
10-25-2005, 05:43 AM
Is there a description of SecureCRT private key file format available?
In case of this document its easy to write converter without waiting for future releases.
Thank you.

tnygren
10-25-2005, 11:15 AM
Hi Pihes,

Unfortunately, this is not an option.

The format of SecureCRT's key is proprietary.

As mentioned by Bocks, the conversion tool is currently being considered for possible inclusion in a future release of SecureCRT.

We would be glad to let you know if it becomes available!

pihes
10-28-2005, 11:08 AM
Hi,

I found on web:
http://www.weonlydo.com/index.asp?showform=SFTP&rnotes=1

2.1.1.2 February 14, 2004
* wodKeys component can now load keys from PFX files (PKCS#12 format)
* Sftp_LoadPrivateKey can also read many other format than PEM, such as
Putty generated keys, VanDyke, PFX.... directly - without
need for keys to load/save with wodKeys first

so, format published under some license?
Or not available at all?

Maureen
10-28-2005, 02:00 PM
I found on web:
http://www.weonlydo.com/index.asp?showform=SFTP&rnotes=1

2.1.1.2 February 14, 2004
* wodKeys component can now load keys from PFX files (PKCS#12 format)
* Sftp_LoadPrivateKey can also read many other format than PEM, such as
Putty generated keys, VanDyke, PFX.... directly - without
need for keys to load/save with wodKeys first

so, format published under some license?
Or not available at all?It not available. I would be interested to know more about your project. Perhaps there is another way to do what you would like to do.

Maureen

pihes
10-29-2005, 12:19 PM
It not available. I would be interested to know more about your project. Perhaps there is another way to do what you would like to do.

Maureen

My friend ask me for help, try to migrate existing private key from VanDyke SecureCRT to some linux client -- he so tired using windows platform ;)

Sorry for my english, please.

Maureen
11-01-2005, 06:56 PM
My friend ask me for help, try to migrate existing private key from VanDyke SecureCRT to some linux client -- he so tired using windows platform ;)

Sorry for my english, please.Thanks for the reply. Your friend will need to generate a new key using the linux client or a tool that can generate a key that will work with that client.

Maureen

Maureen
01-31-2007, 05:32 PM
I wanted to follow up on this thread to let everyone know that the ability to convert VanDyke format private keys to OpenSSH format and to generate OpenSSH format keys has been added to SecureCRT 5.5, which is in pre-beta testing. The beta is planned for next week, but if you'd like to try it before then, please send an e-mail to me at Maureen.Jett@vandyke.com.

Maureen