Server to Server file sending? (through ssh)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
servo888
Forum Newbie
Posts: 7
Joined: Fri Mar 05, 2004 4:47 pm

Server to Server file sending? (through ssh)

Post by servo888 »

Ok so let me explain what I'm trying to do. I have a webserver with limited file storage (about 200mb), and I have massive file server. Currently the file server can only be connected through with ssh. So I need a way to have a client log on to a webpage on the webserver, select a file to upload, and send it to the webserver (as the cache) from there send it to the file server...

though I have no clue if this would be possible because to send from the webserver you must use ssh...

Any ideas?

summary: I need to webbase file uploading device that will transfer a file through the shh protocol to remote file server.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

take a look at scp utility. I use it a lot, as easy as:

Code: Select all

$ scp local.file weirdan@remotehost:/remote/path/remote.file
Post Reply