alkar1 / droidsshd

Automatically exported from code.google.com/p/droidsshd
0 stars 0 forks source link

SFTP support #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. currently, there's no SFTP support on DroidSSHd
2. however, SCP is expected to work 

What is the expected output? What do you see instead?
This is mostly about a reminder/TODO list.

Please use labels and text to provide additional information.
This would require having a sftpd binary available on the device. 

Original issue reported on code.google.com by augu...@bott.com.br on 25 Dec 2010 at 5:01

GoogleCodeExporter commented 9 years ago
http://linuxexplore.wordpress.com/how-tos/sftp-secure-file-transfer-protocol-wit
h-dropbear/

Original comment by AdamOutl...@gmail.com on 23 Jan 2011 at 5:42

GoogleCodeExporter commented 9 years ago
I managed to get sftp working (again, it worked already with v0.5 but after the 
update was broken, now I know why):
- you need a 'sftp-server' binary for your Android version (I got mine from an 
dropbear.zip from xda-developers)
- copy the 'sftp-server' file into '/data/data/br.com.bott.droidsshd/files/bin/'
- chown and chgrp according to the other entries in the folder
- chmod to 755
- it should work :-)

Original comment by s3.hu...@gmail.com on 23 Jan 2011 at 10:18

GoogleCodeExporter commented 9 years ago
Can you tell me where the sftp-server binary is? I couldn't find one in 
dropbear.zip.

Original comment by min...@gmail.com on 4 May 2011 at 2:28

GoogleCodeExporter commented 9 years ago
Well, https://github.com/barryk/android_external_dropbear , of 
http://teslacoilsw.com/dropbear fame says it has support for sftp-sever (and 
yes, it has it in sources, I checked), so the matter is just to build his 
version (maybe after patching).

And yes, SFTP is priority feature, the matter is that it seems no existing 
SSH-based VFS solutions work with Android, so you can't connect with UI in 
Gnome or Midnight Commander to comfotably explore device/transfer files.

Original comment by pmis...@gmail.com on 1 Oct 2011 at 8:06

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Okay, I finally found a cross-compiled version of the sftp-server binary for 
android.

Just copy it to "/data/data/br.com.bott.droidsshd/files/bin/" as noted above, 
and it gets sftp working on!

Original comment by rgeo...@gmail.com on 7 Dec 2011 at 1:28

Attachments:

GoogleCodeExporter commented 9 years ago
When I tried DroidSSHd, it couldn't do either SFTP or xterm:
14:05:54.369 Server does not support xterm terminal.
14:05:54.567 SFTP session received the following error: 
/data/data/br.com.bott.droidsshd/files/bin/sftp-server: not found

I found SSHDroid in the Market and the default install worked for both, no 
struggle at all. Never got back to exploring DroidSSHd...  

Original comment by LorenAme...@gmail.com on 7 Dec 2011 at 2:23

GoogleCodeExporter commented 9 years ago
RE: comment 6

Thanks for that! I also had to change permission to sftp-server to 755 to get 
it working.

Original comment by rommel.d...@gmail.com on 2 Jan 2012 at 11:41

GoogleCodeExporter commented 9 years ago
please include sftp-server with this package

Original comment by steve.r....@gmail.com on 14 Feb 2012 at 6:26

GoogleCodeExporter commented 9 years ago
Yeah but please do it in a way that doesn't require root!

Original comment by tdh...@gmail.com on 4 May 2012 at 1:21

GoogleCodeExporter commented 9 years ago
Some Roms already contains a sftp-server binary, such as CM7. I just did a ln 
-s and it works flawlessly.

Original comment by felixonm...@gmail.com on 31 Aug 2012 at 5:12

GoogleCodeExporter commented 9 years ago
For now, while there is now SFTP for this SSHd installed on a non-rooted 
device, one can use plain "ssh" and "cat" to transfer files to the device (and 
the output of "ls" to assist continuing a partial trnasfer).

I've written simple helper scripts for this -- https://gitorious.org/rpush-cat 
or http://repo.or.cz/w/rpush-cat.git:

Usage:

rpush SRC DEST ssh SSH_args..
rpush-continue SRC [--android|--unix] DEST ssh SSH_args..  
rpush-into [-c|--continue] FILE REMOTE_PREFIX ssh SSH_args..

Original comment by z.va...@gmail.com on 31 Aug 2012 at 5:31

GoogleCodeExporter commented 9 years ago
this are fine tipps!!

In my case it works!! :)
I took the sftp-server from heer --> http://lekv.de/tag/android/
Copy to /data/data/br.com.bott.droidsshd/files/bin
chmod 777 sftp-server and chown user:group sftp-server (user:group you find out 
with ls -l)

Im my case (windows with winscp) i first become en error - heer you have to 
enter in WinSCP the Path to sftp-server
check on Advanced options -> Envirement -> sftp -> sftp server:
their you have to enter the Path to your sftp-server -> 
/data/data/br.com.bott.droidsshd/files/bin/sftp-server

after that it works

Original comment by v.heit...@googlemail.com on 12 Oct 2012 at 3:27