Using a Putty private key in Android ConnectBot
I have been trying to import a private key into ConnectBot for Android.
The key I’m using is working fine when using Putty, but does not work for ConnectBot.
It’s a server side generated key and protected with a password using Puttygen.
To make it work for ConnectBot, you need to have a OpenSSH version of this file.
Luckily one can also use Puttygen to create an OpenSSH key.
In Puttygen:
- Load the private key
- Enter passphrase if applicable
- Goto [Conversions] -> [Export OpenSSH key] and export
Now find a way to get this OpenSSH key to your Android /sdcard (root) folder.
In Connectbot:
- [Menu] -> [Manage Pubkeys]
- [Menu] -> [Import]
- Choose the OpenSSH key from /sdcard
- Click the red lock icon to load the key into memory
- Enter passphrase/password if applicable
- (Disconnect current session)
- Connect!
You don’t assign a private key to a connection, but ConnectBot will just try any loaded key instead.
Cheers!
