Reputation: 815
I am developing an Android application that utilizes RSYNC over SSH to sync up with a network folder. but im having problem with Key provided by puttygen ssh: string too long. I figured out that the ssh client installed in my device is a dropbear ssh client. For this to work, I have to convert PuttyGen PPK to a dropbear key.
Is there's a way to convert PuttyGen PPK to Dropbear Key?
Can I convert it using my ubuntu machine? so that i will just copy the generated key to my android device?
Upvotes: 3
Views: 10166
Reputation: 4427
Actually, it is installed by default, just in a weird place.
https://bugs.launchpad.net/ubuntu/+source/dropbear/+bug/1009868
Upvotes: 0
Reputation: 1161
Here is how I converted my PuTTY keys to work in SSHDroid:
The resulting file was one I could import into SSHDroid. If you want to keep the converted file for future use put it inside an encrypted 7z or RAR as this dropbear key pair file is not protected. You can delete the file once it's imported into SSHDroid anyway.
Upvotes: 1
Reputation: 17087
Download the dropbear source to your machine, build it, and you should have access to dropbearconvert
which can convert keys formatted for OpenSSH to the dropbear format.
Just doing a apt-get install dropbear
will not install the dropbearconvert
tool.
Edit:
Oh, and you can convert your PPK file to OpenSSH using puttygen.exe
.
File menu -> Load your PPK file. Conversions menu -> Export as OpenSSH file.
Upvotes: 3