bobrofon / easysshfs

SSHFS for Android
MIT License
97 stars 16 forks source link

sshfs fails and gives wrong error-messages #17

Open rkoe opened 4 years ago

rkoe commented 4 years ago

Unfortunately, easysshfs does not work, and always gives wrong error-messages.

  1. Wrong message in GUI: GUI says "done", although it failed.
  2. Log always says "Pattern USER@IP:/DIR LOCALDIR fuse.sshfs is not in /proc/mounts", which does not help at all.
  3. Using the commandline always says "read: Connection reset by peer", but this is not true:

    $ su -c "echo PASSWORD | /data/user/0/ru.nsu.bobrofon.easysshfs/files/sshfs -o 'ssh_command=/data/user/0/ru.nsu.bobrofon.easysshfs/files/ssh,password_stdin,UserKnownHostsFile=/dev/null,StrictHostKeyChecking=no,rw,dirsync,nosuid,nodev,noexec,umask=0,allow_other,uid=9997,gid=9997,port=22' USER@IP:/DIR LOCALDIR"
    read: Connection reset by peer

    But 'Connection reset by peer' is wrong -- sshfs does not even try to connect to the remote IP! And unfortunately, it seems that easysshfs does not have any verbose/debug messages to determine the true error.

By the way: ssh and sftp in Termux work well; but easysshfs does not even try to connect.

TuRDMaN commented 1 year ago

I am getting this error as well

bobrofon commented 1 year ago

@TuRDMaN Are you sure you are not seeing just another mount namespaces related problem like the problem explained here: https://github.com/bobrofon/easysshfs/issues/3#issuecomment-478190548 ?

bobrofon commented 1 year ago

ssh and sftp in Termux work well

BTW /data/user/0/ru.nsu.bobrofon.easysshfs/files/{ssh, sshfs} are replaceable. It is possible to copy Termux's versions of ssh/sshfs here and the application will use them instead. I'm not sure that the observable result will be different, though. :(