📎 Webclip
Using a Putty private key in Android ConnectBot
The post explains that a private key that works in PuTTY must be converted to an OpenSSH key before ConnectBot can use it on Android. It gives a simple workflow: export the key with PuTTYgen, copy the OpenSSH file to the phone, import it in ConnectBot, and load it into memory before connecting.
Reading notes#
- A key that works in PuTTY may not work in ConnectBot until it is converted to OpenSSH format.
- PuTTYgen can load a .ppk private key, accept a passphrase if needed, and export an OpenSSH key.
- The OpenSSH key must be copied to the Android /sdcard folder.
- In ConnectBot, the key is imported through Manage Pubkeys, then loaded by clicking the red lock icon.
- If a passphrase exists, it is entered after loading the key.
- The connection is then made by disconnecting the current session and connecting again.
- The post says ConnectBot does not assign a private key to a connection; it tries any loaded key instead.
- A comment adds that on Linux, ssh-keygen -i -f input_keyfile > output_keyfile can generate an OpenSSH keyfile.
