Converting key between PEM and ASCII

Al Banard albanard at hotmail.com
Sun Jun 8 13:59:13 EST 2003


Hi all,

I know its been a while but I just wanted to finish up this thread.
I've now solved the problem by creating a seperate ssh V1 keypair
and using a seperate hostname section in my conf file so that I
can easily specify which private key to use by ssh-ing to a
different host name.

What I was originally trying to do was use the ssh V2 keypair that
I use most of the time with my HP 2512 switch. However my HP
switch only supports the V1 protocol. The HP doco suggested that
I could convert the public key from V2 to V1 and still use the same
private key. The doco also suggested that a V2 public key tends
to be PEM encoded or encoded in some way so that its not just
digits. So I guess the V2 public key for openssh is ASCII but not
the pure digit format the doco was referring to when it said ASCII.

Anyway I guess the bottom line is it was just much easier to create
a seperate keypair so thats what I've done.

Regards

Al


>From: Damien Miller <djm at mindrot.org>
>To: Al Banard <albanard at hotmail.com>
>CC: openssh-unix-dev at mindrot.org
>Subject: Re: Converting key between PEM and ASCII
>Date: Sat, 31 May 2003 10:48:25 +1000
>
>Al Banard wrote:
> > According to documentation for a switch which I'm getting SSH enabled,
> > I need to convert my openssh public key to an ascii string to be 
>compatible
> > with the switch. The switch uses sshV1. Is there a way to do this? I've
> > found nothing in the man pages or FAQ and have tried the -x -X (-i -e)
> > arguments without success but I think they relate to a different 
>translation
> > anyway.
>
>You need to generate a SSH protocol 1 key first (ssh-keygen -t rsa1).
>Then all you need to do is "cat ~/.ssh/identity.pub".
>
>-d
>
>
>_______________________________________________
>openssh-unix-dev mailing list
>openssh-unix-dev at mindrot.org
>http://www.mindrot.org/mailman/listinfo/openssh-unix-dev

_________________________________________________________________
Hotmail is now available on Australian mobile phones. Go to  
http://ninemsn.com.au/mobilecentral/signup.asp




More information about the openssh-unix-dev mailing list