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. Regards Al _________________________________________________________________ ninemsn Extra Storage is now available. 30MB of storage on ninemsn Groups - great for sharing photos and documents. Go to http://join.msn.com/?page=dept/home&pgmarket=en-au
Hi Al Banard, On Fri, May 30, 2003 at 06:50:16PM +1000, Al Banard wrote:> According to documentation for a switch which I'm getting SSH enabled,you might get more response, if you specified which kind of switch you meant.> I need to convert my openssh public key to an ascii string to be compatible > with the switch.The openssh-keys (~/.ssh/identity.pub for V1 and ~/.ssh/id_dsa.pub for V2) already are long ascii-strings.... emil:.ssh$ cat identity.pub 1024 37 1376....7123 chris at kurt Chris -- If you want a domain / you're asking for pain / and nsi gains / momentum. // And while you had wondered / why you felt pludered / they charged you one hundred / per centum. -- User Friendly (http://userfriendly.org/)
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
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