/ mozey.co / blog


December 12, 2020

🔗 Remote access via SSH

🔗 Dropbear

Install Termux using Google Play Store

Install dropbear on Termux

pkg install dropbear

Setup public key auth, assuming you’ve already generate id_rsa.pub, and .ssh/authorized_keys does not exist

mkdir .ssh
cd .ssh
curl https://YOUR_USERNAME.keybase.pub/id_rsa.pub --output authorized_keys

Connect using wlan IP


Only allow public key auth

dropbear -s

# or start in fore-ground
dropbear -sF

Connect remotely from the machine with public key id_rsa.pub to the default dropbear port 8022

ssh -p 8022

🔗 SimpleSSHD

This app isn’t useful without also installing busybox, or somehow making it work with termux?

See this link

Install SimpleSSHD using Google Play Store

Launch SimpleSSHD and click START

Check it works, connect to the IP address as displayed in the app. Single use password will be displayed in the app

#ssh -o StrictHostKeyChecking=no -p 2222
ssh -p 2222

Install your public key on the phone, better security and convenience of not having to type a password

cp ~/.ssh/id_rsa.pub ~/authorized_keys
scp -P 2222 authorized_keys
rm ~/authorized_keys

The ssh command above should now work without prompting

🔗 Internal and external storage

First setup permissions and create the symlink $HOME/storage


🔗 Touch Keyboard

Create ~/.termux/termux.properties with content

extra-keys = [ \
 ['ESC','|','/','HOME','UP','END','PGUP','DEL'], \