1

On Ubuntu I generated a key using ssh-keygen -t rsa -b 4096 command. While trying to convert the generated key to OpenSSH format with ssh-keygen -i -f id_rsa.pub > id_rsa_openssh.pub, I get error uudecode failed. Any idea how to resolve this error.

Jatala
  • 93
  • 1
  • 11
  • 2
    The `id_rsa.pub` file created by `ssh-keygen` (part of OpenSSH) is already in OpenSSH publickey format, and does not need to be and cannot be imported. Although it is used for SSH2 _protocol_ (along with the matching privatekey) it is not at all related to what OpenSSH calls 'SSH2' format, which is really the commercial Tectia-now-ssh-dot-com _product_. – dave_thompson_085 May 22 '20 at 04:16
  • @dave_thompson_085 Thanks. – Jatala May 27 '20 at 13:27

1 Answers1

-2

Probably too late but using

ssh-keygen -e -f id_rsa.pub > id_rsa_openssh.pub

worked for me.