2/8/2022 Transfer file to android from PC via termux

How to transfer a file from a PC computer to your android via termux:

In termux

sshd
# Set a temporary passwd or connection won't be allowed
passwd

From your PC

# no user needed, since termux is mono-user
scp -P 8022 ./Documents/my_file 192.168.2.209:/sdcard/Download/
# N.B this sdcard in the path is the primary storage
# The permission to storage must be allowed inside termux settings

In termux again

pkill sshd

You're all done !