Creating SSH keys with Connectbot
Generate Public/Private Key
For additional security, you can use a public/private key pair to login. If you disable password authentication, your sshd setup will be more secure.
Tap on the : menu at the top right corner, then tap Manage Pubkeys
.
![](https://ircnow.org/uploads/ConnectBot/connectbot-manage-pubkeys.png)
Tap the + plus icon at the top right corner.
![](https://ircnow.org/uploads/ConnectBot/connectbot-pubkey-none.png)
Nickname
: Fill in a nickname for the key.Type
: Here we chose Ed25519.Password
: Optional: If you leave this blank, you can login without a password. WARNING: If you use a password, write it down and don't forget it. The key becomes worthless if you forget the password!- Check
Load key on start
Tap Generate
.
![](https://ircnow.org/uploads/ConnectBot/connectbot-generate-ed25519.png)
Move your finger around the purple box randomly.
![](https://ircnow.org/uploads/ConnectBot/connectbot-generate-random.png)
Tap on the public key and unlock it.
![](https://ircnow.org/uploads/ConnectBot/connectbot-pubkey-password.png)
Tap Copy public key
.
![](https://ircnow.org/uploads/ConnectBot/connectbot-pubkeys-copy-public-key.png)
Tap the back arrow button at the top left, then login to your server as before and type in the password.
Edit ~/.ssh/authorized_keys and paste in your public key:
![](https://ircnow.org/uploads/ConnectBot/connectbot-authorized-keys.png)
Logout and then login. You should no longer need to type in any password.