I want to send some specific files from my linux PC to my android device. I'd like to send it automatically using terminal commands, so there will be no drag and drop files.
I don't know what is the best communication way to send file via wifi. I understand how to send using ftp by downloading 'ftp server' app on my android, but that's not suitable to my work since it needs to open an internet browser on my PC and transfer like a file manager. So I tried using ssh:
scp /home/user/picture1.jpg email@example.com:/storage/emulated/0
but always ended up error:
ssh: connect to host 192.168.1.117 port 22: Connection refused lost connection
How to solve this problem? or does anyone have any other recommendation which communication way should I use?