In lineage 17.1 I installed the app SSH server
(by Banana Studio, from Play store).
When starting and accessing by my PC (smartphone and PC are in WiFi) via sftp -P 2222 [email protected]
I see no files there, but there are photos in the smartphone folder /storage/emulated/0/DCIM/Camera
.
When doing cd storage
the connection is closed. My PC has ubuntu 18.04.
1 Answer
Comment of @Irfan Latif solved the problem. Going to Settings -> Apps -> Termux -> Permissions) and granting (i e. checking the box).
cd storage
is not a valid command. You should docd /storage/emulated/0
. But that would work only if your SSH server app has Storage permission granted.