the ssh/sshd alternative for android.
env.txt: for android adb shell env
you can get your device env:
adb shell busybox env
then, remove USER,RANDOM and _ avaluables
the end, you should update these to svr-chansession.c by using addnewvar()
sudo apt-get install gcc-arm-linux-gnueabi
./configure --host=arm-linux-eabi \
--disable-zlib \
--disable-largefile \
--disable-loginfunc \
--disable-shadow \
--disable-utmp \
--disable-utmpx \
--disable-wtmp \
--disable-wtmpx \
--disable-pututline \
--disable-pututxline \
--disable-lastlog \
CC=arm-linux-gnueabi-gcc \
STRIP=arm-linux-gnueabi-strip
export STATIC=1 MULTI=1 CC=arm-linux-gnueabi-gcc SCPPROGRESS=0 PROGRAMS="dropbear dropbearkey dbclient"
make clean && make -j4 strip
scp: copy file over ssh
sftp-server: ftp server over ssh
dropbear_install.sh: install dropbear to android
maybe you want to custom!