Native sshd in Android Lollipop

126 views
Skip to first unread message

Plamen Dimitrov

unread,
Jul 26, 2016, 10:13:51 AM7/26/16
to Android-x86
Hi,

Inspection of an installed android-x86-5.1-rc1.iso filesystem reveals that there is no native sshd binary there. Does anyone have a good suggestion on how to add one? I would prefer to avoid options like 'dropbear' and the similar.

Thanks,
Plamen

Plamen Dimitrov

unread,
Oct 7, 2016, 10:20:40 AM10/7/16
to Android-x86
Here is a way I found:

modprobe nbd max_part=63
qemu-nbd -c /dev/nbd0 /mnt/local/images/vmL/Android86_Lollipop_vmL.qcow2
partprobe /dev/nbd0
mount /dev/nbd0p1 /mnt/android
ssh-keygen -f /mnt/android/android-5.1-rc1/system/etc/ssh/ssh_host_rsa_key -N '' -t rsa
ssh-keygen -f /mnt/android/android-5.1-rc1/system/etc/ssh/ssh_host_dsa_key -N '' -t dsa

-> then copy these and an sshd binary + libssh.so + libcrypto.so (the last one in a subirectory like /lib/custom)

Invoke using "export LD_LIBRARY_PATH=/lib/custom:$LD_LIBRARY_PATH /system/bin/sshd"

Done.
Reply all
Reply to author
Forward
0 new messages