Re: ssh within PHP
From: Tirumal B (tirumal_b_at_yahoo.com)
Date: 11/11/03
- Previous message: Warren Vail: "RE: [PHP] ssh command in php script"
- Next in thread: Eugene Lee: "Re: [PHP] Re: ssh within PHP"
- Reply: Eugene Lee: "Re: [PHP] Re: ssh within PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 10 Nov 2003 23:05:02 -0800 (PST) To: php-general@lists.php.net
Hello All,
Its enough if i have the apache privileges. Can i
login to apache user and to remote computer apache
user with public key authentication and run some
command there.
thank you
> On Tue, 2003-11-11 at 01:34, tirumal b wrote:
> > Hello All
> >
> > I have written the following command in PHP script
> > echo `ssh <ipaddr> <command>`. I have the remote
ip
> > addr as trusted, dont ask for the password at all.
> > when the execute the php file from the browser it
does
> > not go to the remote ip at all though this command
> > works fine in a normal bash script. what is the
> > problem. Thanks in advance.
>
> Shell commands run from the browser inherit the
browser's user --
this
> is usually httpd or apache.
Correct: doesn't inherit the browser's user, but
inherit's the web
server's user.
Cheers,
Rob.
-- __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree
- Previous message: Warren Vail: "RE: [PHP] ssh command in php script"
- Next in thread: Eugene Lee: "Re: [PHP] Re: ssh within PHP"
- Reply: Eugene Lee: "Re: [PHP] Re: ssh within PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|