ish-app / ish

Linux shell for iOS
https://ish.app
Other
17.08k stars 907 forks source link

Can't sftp but can use ssh? #1408

Open ojdon opened 3 years ago

ojdon commented 3 years ago

Hi there

I've followed the wiki page on how to setup ssh, which allows me to successfully connect from within ish itself.

However, when I try to connect via sftp via sftp -P 22000 root@<local IP>

Then I just get

Connection closed.
Connection closed.

Adding -vvv to the command doesn't reveal anything noticeable other than channel 0: is dead.

Are there any additional steps I should be doing to setup sftp in ish?

Thanks

wizzard0 commented 3 years ago

can confirm. same with dropbear instead of openssh and connecting from another device

cparker15 commented 3 years ago

Does anybody have any ideas about what could be causing this? It doesn't matter if either of these values are used in /etc/ssh/sshd_config:

Subsystem sftp /usr/lib/ssh/sftp-server

or

Subsystem sftp internal-sftp

matteha commented 2 years ago

Would also be interested in this.

lm339 commented 2 years ago

You can try scp

matheusfillipe commented 2 years ago

That kinda sucks. Does anyone have any idea why sftp doesn't work? Both scp and sftp fail for me. Running with -vv

(...)
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: subsystem request accepted on channel 0
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug2: channel 0: rcvd eow
debug2: chan_shutdown_read: channel 0: (i0 o0 sock -1 wfd 4 efd 6 [write])
debug2: channel 0: input open -> closed
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: chan_shutdown_write: channel 0: (i3 o1 sock -1 wfd 5 efd 6 [write])
debug2: channel 0: output drain -> closed
debug2: channel 0: rcvd close
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
scp: Connection closed
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 3996, received 3656 bytes, in 1.0 seconds
Bytes per second: sent 3857.9, received 3529.6
debug1: Exit status 255
ljcucc commented 2 years ago

It might not works…? #955 😢

wuebbel commented 1 year ago

See https://github.com/ish-app/ish/issues/2075. You need to recompile sftp-server.