How do I make the SFTP work? I have an SSH server that I can connect to using FileZilla on my PC. When I connect to it on Token2Shell/Mobile, I get the shell prompt. When I try to open the SSH2 file browser it says "Starting SSH2 file browser failed. (Make sure your server supports SFTP.)
I know the server supports SFTP because I can connect using FileZilla and transfer files. How do I make this work with Token2Shell? Is there a special configuration I have to do on the server?
What SSH server are you using?
Token2Shell/Mobile creates a "second" data channel inside the main connection. This behavior is perfectly within SSH protocol specification, but it's a very "different" approach for providing file transfer function.
Since most SSH sessions use only one channel (ex. FileZilla and other SFTP only clients), some servers may have problems coping with the second channel request from Token2Shell/Mobile. So, if you're using an outdated freeware server that's no longer maintained, we recommend replacing it with a better one, ex. OpenSSH(http://openssh.org), WinSSHD(http://bitvise.com) and etc.
Also, please note that although the file browsing is handled using SFTP, the actual file transfer is done via SCP (SCP is *much* faster than SFTP!). Thus, your server must be able to support both SFTP and SCP if you're planning on using "SSH2 File Browser".
Hope this helps.
Best regards,
Support Team (support@choung.net)
Choung Networks | http://choung.net/
Thanks for your reply! I have tried this on two different servers so far. One is OpenSSH 5.2p1-2 on a linksys device and the other is OpenSSH 5.1p1-10 on Cygwin/Windows 7. Both are running default configuration and were not successful. Since you are recommending OpenSSH then I must assume that my problem can be fixed with some additional configuration or perhaps a software upgrade... Can you advise me on what I need to do?
I did manage to get file transfers working with WinSSHD, though.. This is a Windows-only solution, of course, but it worked with default settings.
In OpenSSH, starting SFTP or SCP is in fact launching an external application. So, your configuration of OpenSSH *must* be able to locate those applications, and your account *must* have a right or permission to execute them.
In normal and full Unix environment, installing OpenSSH with default settings is sufficient. But, running OpenSSH under environment such as Cygwin is a bit tricky since Cygwin tries to map or translate Unix commands to Windows and that doesn't always work.
Anyhow, we searched the Internet for application path and permission issues in Cygwin and found the following posts:
http://winscp.net/forum/viewtopic.php?t=3782
http://cygwin.com/ml/cygwin/2009-07/msg00689.html
http://www.itefix.no/i2/node/12067
Please note that as we are no expert on Cygwin, it's beyond our ability to provide proper and accurate information about setting it up. Please contact Cygwin or its user groups for assistance. If you are using a special Cygwin installation package for OpenSSH such as copSSH (http://www.itefix.no/i2/copssh), please try contacting that author first.
For Linksys OpenSSH... well... it seems you are referring to the embedded Linux, perhaps OpenWrt (http://openwrt.org/)?
Embedded Linux runs on hardware with very limited memory resource and OpenSSH is a *big* application. Since Token2Shell/Mobile needs at least two data channels (one for shell and one for SFTP), it's possible that the Linksys ran out of memory and failed to execute SFTP subsystem. Or, it's also possible that it's having an application path or permission issue as mentioned above.
Best regards,
Support Team (support@choung.net)
Choung Networks | http://choung.net/