Re: Re: Transferring files between computers using php
| From: | Richard Lynch | Date: | Fri, 07 Mar 2008 14:59:13 +0000 |
| Subject: | Re: Re: Transferring files between computers using php | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271124@lists.php.net to get a copy of this message | ||
On Thu, March 6, 2008 11:10 pm, Chris wrote:
>
>> If ssh keys are installed on the remote hosts then scp works
>> transparently and you just stick the scp in a cron job. Am I
>> missing
>> something?
>
> Yeh - looks like you have to log in to "A" and then it uses
> key-forwarding to let you log in to "B" and "C":
>
> ---
> To login to B and C I should use A because it has a SSH key. I don't
> have any other way of accessing these two computers.
> ---
>
> ie B & C can't talk to each other directly (that's my understanding
> anyway).
Scenario #1:
B&C can't talk for a reason.
Ergo, you SHOULD use A as a go-between
Scenario #2:
B&C could talk if you wanted them to.
Install SSH key-pairs on B&C and then use rsync over SSH
There's still no PHP involved, really...
Maybe there should be, in that the two programs should, perhaps,
expose something as web services via RCP, REST, or SOAP, but not from
what has been explained so far...
@OP:
Please give us the "big picture" of what B&C are doing, and what info
needs to go back and forth.
This could change the answers dramatically.
Or not. :-)
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?