Topic: SFTP (SFTP over SSH2) support in Net2Ftp

Hi,
I need an HTTP gateway to access SFTP archives. The best I found is Net2Ftp but that doesn't support SFTP over SSH2.
- Is it implemented, either in CVS or with an external patch?
- Is there plans to do it? When?
- If I implement it, would you integrate it in the main Net2Ftp?

Warning:  I mean not the FTP overs SSL thing, SFTP over SSH2

Thanks.
-jec

Re: SFTP (SFTP over SSH2) support in Net2Ftp

jecuendet wrote:

- Is it implemented, either in CVS or with an external patch?
- Is there plans to do it? When?

net2ftp can only connect using the ftp_ssl_connect() function.
There are no plans to implement FTP over SSH2 - in fact you are the first person asking for this feature.

jecuendet wrote:

- If I implement it, would you integrate it in the main Net2Ftp?

For sure!

It would make things easier if you would make functions to connect, ask a list of files and directories, get/put files, etc -- like the standard PHP functions.

How do you plan to do this? Using sockets? SSH functions?

Re: SFTP (SFTP over SSH2) support in Net2Ftp

PHP has built in SSH2 functions, which are almost the same as the normal FTP ones (http://uk2.php.net/manual/en/ref.ssh2.php) while it does need a lib to be installed it is much better than the socket method of doing things.

Re: SFTP (SFTP over SSH2) support in Net2Ftp

Would love to see this added

Re: SFTP (SFTP over SSH2) support in Net2Ftp

Hi there !

Firstly, let me thank you for Net2FTP. It's very useful.
Now, I'd be very interested in the ssh2 protocol being added. It's become easy to implement sshfs on the linux shell, these days, and apps like Webdrive make it easy for Windows users to map sshfs-based network drives to their "My Computer" letter drives. But for those who go to the net from behind a proxy/firewall, net2ftp is the only way. And sftp would be needed...

Thanks in advance.
Natan

Re: SFTP (SFTP over SSH2) support in Net2Ftp

Im a novice..Can anyone help me or point me in the right direction to make a simple SFTP script that i can deploy on a server like net2ftp but with the capability to connect to a SFTP server?

Re: SFTP (SFTP over SSH2) support in Net2Ftp

Hi There!
Im new in this site!
It would make things easier if you would make functions to connect, ask a list of files and directories, get/put files, etc -- like the standard PHP functions.
I hope I can have more friends here!
Im happy to be part of this community!
  just keep on posting Guys!
Thanks!
  Good Luck! 

Building Your Own Website

Re: SFTP (SFTP over SSH2) support in Net2Ftp

Up ! Really the most-needed feature ever.
Regards,
Natan

Re: SFTP (SFTP over SSH2) support in Net2Ftp

I have the same problem. Thank you for your answer, David!


__________________
hummer h2 wheel hub bearing
Pumpkin Seed Kernel

Last edited by phamthebac (2010-04-12 20:04:05)

Re: SFTP (SFTP over SSH2) support in Net2Ftp

I would like this feature, as well.  That said,

Freddie wrote:

PHP has built in SSH2 functions, which are almost the same as the normal FTP ones (http://uk2.php.net/manual/en/ref.ssh2.php) while it does need a lib to be installed it is much better than the socket method of doing things.

I don't agree.  Check out this drupal.org post to see why the built-in methods don't work:

http://drupal.org/node/671702#comment-2629172

Per that, it seems like the best approach would be to use phpseclib, a pure PHP SFTP implementation, despite the fact that it does appear to use the socket method of doing things.

Last edited by berking (2010-04-09 14:52:17)

Re: SFTP (SFTP over SSH2) support in Net2Ftp

Up ! Really the most-needed feature ever.
Regards,
Natan

Re: SFTP (SFTP over SSH2) support in Net2Ftp

This is what i was looking for. Thank you Guyz



Regards


Hick14