9

How do I generate a pair of SSH keys to be able to use in several apps (Juice SSH, Turbo, etc) to access my remote host? I've tried generating them with Connectbot, JuiceSSH and on a Linux machine, but none seem to work...

EDIT: I've generated the keys the way I usually do, with ssh-keygen -t rsa -b 4096, copied the private key to a ssh/ folder on my phone's internal memory (which I later point to in the client software) and added the public key to the .ssh/authorized_keys file on my server.

3

2 Answers 2

3

You could install Termux, a terminal shell with additional Linux functionality on top of Android, with a package manager, so you can scale the magnitude of native Linux functionality at will. Then enter

pkg install openssh

Key-pairs in different formats will be generated upon OpenSSH install.

1
  1. Install Termux from Google Play Store
  2. Open Termux and execute pkg install openssh
  3. Installation scripts automatically generates four public/private key pairs at /data/data/com.termux/files/usr/etc/ssh/ folder for RSA, DSA, ECDSA, and ed25519 encryption algorithms.
  4. If you prefer to do it manually and setup a passphrase just execute ssh-keygen -t rsa -b 4096 and follow the process.

You must log in to answer this question.

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