Humm... that's a bit difficult. There are easier solution:

1) Get your users to learn and usr SCP :) (not likely :))
2) Get a better FTP Server. There are better FTP servers out there other than
   Wu-FTPD :). Try Pro-FTPD
3) SSH server to forward the FTP port (21). This will pass the "command" channel of 
FTP ie the username
and password part of FTP process to SSH. But all other command like actual files 
transfers etc. will not
be encrypted. And as I recall the FTP clients will have to always use passive mode? or 
the other one I can't 
remember.

4) Run SSL on your server. This way you can just let your user use your PHP scripts to 
upload files

Otherwise, it'll be pretty difficult to get PHP to work with SSH.

> From: [EMAIL PROTECTED] ("Nando2")
> Newsgroups: php.general
> Date: 5 Jan 2001 16:40:09 -0800
> Subject: [PHP] SSH file transfers
> 
> Hello Everybody,
> 
> I need to do upload and download with php but I didn't want to have a FTP
> server running on one of my linux servers since it is unsecure.
> 
> Since all my servers have SSH running I would like to be able to offer a PHP
> download/ upload system that uses SSH instead of FTP.
> 
> How can I upload / download files using SSH through PHP?
> 
> Has anyone ever did it before?
> 
> Thank you,
> 
> Carlos Fernando.
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to