We encourage you to contribute by submitting issues on GitHub. Your involvement will help us progress and evolve.
init termux:
termux-change-repo #choose github link error pkg update
Termux:
pkg update
pkg install python3 termux-auth openssh
Android is a Linux subsystem. We're going to using OpenSSH to start by generating encryption keys. I am creating an interface to integrate our Automation Server and our target (android/linux/armv8) into the network. This new network created and isolated from the internet allows the two devices to exchange secrets. So I retrieve the public encryption key from my smartphone and send it to the Server. I generate a password for my termux user using the termux-auth
packet, I try to connect using ssh, ... SUCCESS
sshd #running on port 8022
Configure SSH on Termux (Android):
- generate ssh key:
ssh-keygen -o -t rsa -C "your@email.com" # replace by your email
# Two files are generated: your private key (your_key) and your public key (your_key.pub). By default, these keys are typically stored in the following location: ~/.ssh, unless you specify a different path.
- active ssh:
eval $(ssh-agent -s)
ssh-add your_key # add private key
- cat pubkey:
cat $(pwd)/your_key.pub
# Copy pub key. You will need to add the public key to the Git server (Gitlab, Github, Bitbucket, ...)
# Gitlab: Home > navbar on the left > your user icon in top-right > Preference > SSH Keys
- generate a password to connect on ssh via termux-auth
passwd # tap your password
On ure automation server
ssh-copy-id -p 8022 anyuser@your_android_ip
# You can now run ansible whenever you want
ansible-playbook playbook.yml -i inventory.yml