I want to generate a ssh v2 key for my ubuntu one account to be able to log onto ubuntu core on my raspberry key. I follow the instructions outlined here but every time I want to import the key on Ubuntu One it states "Invalid SSH key data: 'ssh-rsa -..." I did the following command:

ssh-keygen -t rsa

And copied the contents of file id_rsa.pub

1 Answer 1


Ok, I figured it out. The key needs to be 4096 bits so the command is:

ssh-keygen -t rsa -b 4096

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .