Re: Re: Transferring files between computers using php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux