I have a file on a remote server that I want to transfer to my android device over
ssh, only using the android device in the process.
Using this setup, I tried an
scp from the android device
scp remote_user@remote_host:file file
After being prompted for the password I got permission denied.
I then tried to transfer it from the remote server
scp -P 2222 file root@SSHDroid-ip:/mnt/extSdCard/file
Without being prompted for the password I now get the message that the network (of the android device) is unreachable: lost connection.
Is this a permission problem? I have transferred files over
ssh from the remote server before, so I suppose the problem is on the side of the android device.
I can transfer the file, from the remote server to the android device via scp, to the home path of the SSHDroid server on the android device. This home path is very cumbersome and deep, and can not be reached with the regular android API of the device.
So I can transfer it to the home path of the SSHDroid server, but not to the path of my SD card on the android device. Where can I change/check the permission settings of the android device?