Re: [PHP] SSH system command problem

2005-01-31 Thread Curt Zirzow
* Thus wrote Linn Fagerberg: > Hi, > > I am trying to use a php system command to run a script and access files > from another server using SSH. This does not seem to work in PHP or else I > am doing it wrong because I keep on getting the system return value=255 when > I do > > > > system("/u

Re: [PHP] SSH system command problem

2005-01-31 Thread Richard Lynch
Linn Fagerberg wrote: > I am trying to use a php system command to run a script and access files > from another server using SSH. This does not seem to work in PHP or else I > am doing it wrong because I keep on getting the system return value=255 > when > I do > > system("/usr/bin/ssh 10.0.0.1", $

Re: [PHP] SSH system command problem

2005-01-31 Thread Jason Wong
On Monday 31 January 2005 16:44, Linn Fagerberg wrote: > I am trying to use a php system command to run a script and access files > from another server using SSH. This does not seem to work in PHP or else I > am doing it wrong because I keep on getting the system return value=255 > when I do > > >

[PHP] SSH system command problem

2005-01-31 Thread Linn Fagerberg
Hi, I am trying to use a php system command to run a script and access files from another server using SSH. This does not seem to work in PHP or else I am doing it wrong because I keep on getting the system return value=255 when I do system("/usr/bin/ssh 10.0.0.1", $value) I tried to do a

Re: [PHP] SSH Authentication using php

2004-08-16 Thread Matthew Sims
>> Ok, here's the whole project, I have an openbsd box using authpf which >> uses authentication via ssh login. So, i'm trying to create a weblogin >> using php so people just have to enter their username/password (which >> would be a restricted unix account) to gain access to the internet. I >> ha

Re: [PHP] SSH Authentication using php

2004-08-16 Thread Michal Migurski
> Ok, here's the whole project, I have an openbsd box using authpf which > uses authentication via ssh login. So, i'm trying to create a weblogin > using php so people just have to enter their username/password (which > would be a restricted unix account) to gain access to the internet. I > have au

Re: [PHP] SSH Authentication using php

2004-08-16 Thread Robby Russell
From: "Michal Migurski" <[EMAIL PROTECTED]> > To: "Robby Russell" <[EMAIL PROTECTED]> > Cc: "Teren" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Monday, August 16, 2004 1:15 PM > Subject: Re: [PHP] SSH Authentication using php > &g

Re: [PHP] SSH Authentication using php

2004-08-16 Thread Teren
t;[EMAIL PROTECTED]> Sent: Monday, August 16, 2004 1:15 PM Subject: Re: [PHP] SSH Authentication using php > > > Hi, what my goal is is to be able to authenticate a user by they SSH > > > acount on the system using php. I tried looking on google, but didn't > > &g

Re: [PHP] SSH Authentication using php

2004-08-16 Thread Robby Russell
On Mon, 2004-08-16 at 10:15, Michal Migurski wrote: > > > Hi, what my goal is is to be able to authenticate a user by they SSH > > > acount on the system using php. I tried looking on google, but didn't > > > see anything with ssh. What i've tried to do is use the exec() and > > > just do: > > > >

Re: [PHP] SSH Authentication using php

2004-08-16 Thread Michal Migurski
> > Hi, what my goal is is to be able to authenticate a user by they SSH > > acount on the system using php. I tried looking on google, but didn't > > see anything with ssh. What i've tried to do is use the exec() and > > just do: > > > > exec("ssh [EMAIL PROTECTED]".escapleshellard("password")); >

Re: [PHP] SSH Authentication using php

2004-08-16 Thread Robby Russell
On Mon, 2004-08-16 at 08:39, Teren wrote: > Hi, what my goal is is to be able to authenticate a user by they SSH acount on the > system using php. I tried looking on google, but didn't see anything with ssh. What > i've tried to do is use the exec() and just do: > > exec("ssh [EMAIL PROTECTED]".

[PHP] SSH Authentication using php

2004-08-16 Thread Teren
Hi, what my goal is is to be able to authenticate a user by they SSH acount on the system using php. I tried looking on google, but didn't see anything with ssh. What i've tried to do is use the exec() and just do: exec("ssh [EMAIL PROTECTED]".escapleshellard("password")); but that didn't seem

Re: [PHP] SsH

2004-04-13 Thread David T-G
Brent -- ...and then Brent Clark said... % % Does anybody know if theirs a function or something for php that when I % click a button it automatically sshes into a box runs a script and then % exits? Ive seen it been done in java but php would be better. If you want to connect from the *server*

RE: [PHP] SsH

2004-04-13 Thread Clifford W. Hansen
>Does anybody know if theirs a function or something for php that when I click a button it automatically sshes into a box runs a script and then exits? >Ive seen it been done in java but php would be better. `ssh [EMAIL PROTECTED] scriptname` Something like that will work using backticks, the onl

[PHP] SsH

2004-04-13 Thread Brent Clark
Does anybody know if theirs a function or something for php that when I click a button it automatically sshes into a box runs a script and then exits? Ive seen it been done in java but php would be better. Kind Regards Brent Clark

Re: [PHP] SSH and php

2003-11-17 Thread David T-G
Ryna -- ...and then Ryan A said... % % Hey David, Hiya! % % % Is it possible to run a SSH command from php? % >Sure; it's possible to run any command from php. It may not work all % >that well, though :-) % % heheh, good one. As helpful as usual :-D Always there for ya, man :-) % % >Goo

Re: [PHP] SSH and php

2003-11-17 Thread Mike Migurski
>% Doing a quick search on google for "SSH commands" and "SSH help" returned >% quite a lot >% of crap that really didnt help me learn. > >>Good enough. What do you want to do? > >Basically stop/restart apache when i make changes to the httpd.conf file. >But then thinking of it I realize that if I

Re: [PHP] SSH and php

2003-11-17 Thread Duncan Hill
On Monday 17 November 2003 15:02, Ryan A wrote: > So I guess my question gets cut down to basically "any good place/program > to learn/use SSH?" No such thing as an 'ssh command' really.. apart from the command used to invoke SSH. SSH (crudely) is an encrypted form of telnet. You need a beginne

Re: [PHP] SSH and php

2003-11-17 Thread Ryan A
-- From: "David T-G" <[EMAIL PROTECTED]> To: "PHP General list" <[EMAIL PROTECTED]> Cc: "Ryan A" <[EMAIL PROTECTED]> Sent: Monday, November 17, 2003 4:23 AM Subject: Re: [PHP] SSH and php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SSH and php

2003-11-16 Thread David T-G
Ryan -- ...and then Ryan A said... % % Hi guys, Hi! % Is it possible to run a SSH command from php? Sure; it's possible to run any command from php. It may not work all that well, though :-) % coming from a windows background I have no idea about shell/SSH and am % pretty lost. % Doing a q

[PHP] SSH and php

2003-11-16 Thread Ryan A
Hi guys, Is it possible to run a SSH command from php? coming from a windows background I have no idea about shell/SSH and am pretty lost. Doing a quick search on google for "SSH commands" and "SSH help" returned quite a lot of crap that really didnt help me learn. Now I know a few (very very few)

RE: [PHP] ssh command in php script

2003-11-11 Thread Warren Vail
which had no system privileges at all, a common safeguard, on RH Linux. Warren Vail [EMAIL PROTECTED] -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 10:38 PM To: tirumal b Cc: PHP-General Subject: Re: [PHP] ssh command in php script On T

Re: [PHP] ssh command in php script

2003-11-10 Thread Robert Cummings
On Tue, 2003-11-11 at 01:37, Robert Cummings wrote: > On Tue, 2003-11-11 at 01:34, tirumal b wrote: > > Hello All > > > > I have written the following command in PHP script > > echo `ssh `. I have the remote ip > > addr as trusted, dont ask for the password at all. > > when the execute the php fi

Re: [PHP] ssh command in php script

2003-11-10 Thread Robert Cummings
On Tue, 2003-11-11 at 01:34, tirumal b wrote: > Hello All > > I have written the following command in PHP script > echo `ssh `. 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 thoug

[PHP] ssh command in php script

2003-11-10 Thread tirumal b
Hello All I have written the following command in PHP script echo `ssh `. 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 t

[PHP] SSH in PHP script

2003-11-10 Thread tirumal b
Hello I have written the following command in PHP script echo `ssh `. 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 p

Re: [PHP] SSH change password!

2003-01-27 Thread David T-G
Mantas -- ...and then Mantas Kriauciunas said... % ... % And what I need this script for, is, not everyone knows how to use ssh % and I don't want to give access to 50 users that can run their % processes, my server will freeze. That's why I need to change it somehow Either your users plan to ru

Re: [PHP] SSH change password!

2003-01-24 Thread Michael Sims
On Fri, 24 Jan 2003 11:48:50 -0600, you wrote: >What I need is to change users password on the server, I want to write >that script and it needs to be safe. So I don't know what should I use. >I think I will need to check username and password, then log in through >website with it and then use pas

RE: [PHP] SSH change password!

2003-01-24 Thread Serge Paquin
re is it will be big security hole. > > :/ > > thnx again > > -mNTKz > > -Original Message----- > From: Tom Woody [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 > 12:03 PM To: Mantas Kriauciunas > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] SSH chan

RE: [PHP] SSH change password!

2003-01-24 Thread Mantas Kriauciunas
riauciunas Cc: [EMAIL PROTECTED] Subject: Re: [PHP] SSH change password! The one problem and serious security risk you will be introducing is that if you run passwd as an unprivliged user you can only change the password of the user you are running it as. Therefore, the webserver would be running

Re: [PHP] SSH change password!

2003-01-24 Thread Tom Woody
The one problem and serious security risk you will be introducing is that if you run passwd as an unprivliged user you can only change the password of the user you are running it as. Therefore, the webserver would be running as apache, so the only password it could change would be for user apache.

[PHP] SSH change password!

2003-01-24 Thread Mantas Kriauciunas
Hey! I was wondering with what command do you execute shell commands? What I need is to change users password on the server, I want to write that script and it needs to be safe. So I don't know what should I use. I think I will need to check username and password, then log in through website with

RE: [PHP] SSH (again)

2002-10-14 Thread James Mackie
As this is very OT I have replied privately.. :) James -Original Message- From: Alan Todd [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 12:59 PM To: PHP Subject: [PHP] SSH (again) Question for all you out there .. Trying to do ssh (yes i know i checked the archives) .. i

[PHP] SSH (again)

2002-10-14 Thread Alan Todd
Question for all you out there .. Trying to do ssh (yes i know i checked the archives) .. i need a box to ssh to another box and run a perl script. Tried several different options and nothing seems to work .. one thing is having a hard time getting the KEY to work with ssh .. Anyone got any point

[PHP] SSH

2002-05-04 Thread Kyle Gibson
I am curious as to how I would go about executing SSH command line operations through PHP. Say for instance the command "ftpwho", which would return a list of users connected to a FTP server, along with what they are doing, etc. I've tried to open a socket to my SSH server, along with the func

Re: [PHP] ssh

2001-05-22 Thread Dan Lowe
Previously, Dennis Gearon said: > > ***AND*** getting the certificate to work for it? > My provider that runs php/mysql/etc only lets people use SSH connections > for telnet, which I agree with. As others have mentioned, PuTTY is the way to go. You can use key files with it, or passwords (or b

RE: [PHP] ssh

2001-05-15 Thread scott [gts]
ozo Papp [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 15, 2001 8:43 AM > To: Dennis Gearon; [EMAIL PROTECTED] > Subject: Re: [PHP] ssh > > > As others metioned, you feel free to use Putty. > If it doesn't fit your needs, I 've a fairly old SSH extension to Teraterm >

Re: [PHP] ssh

2001-05-15 Thread Gyozo Papp
: <[EMAIL PROTECTED]> Sent: 2001. május 15. 00:26 Subject: [PHP] ssh > anyone got the easy directions to setting up > with SSH > > ***AND*** getting the certificate to work for it? > > My provider that runs php/mysql/etc only lets people use SSH connections > for telnet,

RE: [PHP] ssh

2001-05-15 Thread Jason Murray
> >> How about using something like puTTY or SecureCRT? > > > >Just a side note. I also like SecureCRT, but it isn't "free" (which > >was the original request) unless you install an "alternative license." > >It's worth the $99 to me, but the requestor was looking for free. > > I like just regu

Re: [PHP] ssh

2001-05-14 Thread Mark Maggelet
On Mon, 14 May 2001 23:29:03 -0800, Christopher Ostmo ([EMAIL PROTECTED]) wrote: >Tyrone Mills pressed the little lettered thingies in this order... > >> How about using something like puTTY or SecureCRT? >> > >Just a side note. I also like SecureCRT, but it isn't "free" (which >was >the original

Re: [PHP] ssh

2001-05-14 Thread Christopher Ostmo
Tyrone Mills pressed the little lettered thingies in this order... > How about using something like puTTY or SecureCRT? > Just a side note. I also like SecureCRT, but it isn't "free" (which was the original request) unless you install an "alternative license." It's worth the $99 to me, but

Re: [PHP] ssh

2001-05-14 Thread Ethan Schroeder
I use mindterm sometimes, as well. I love it. Ethan Schroeder - Original Message - From: "Dennis Gearon" <[EMAIL PROTECTED]> To: "Ethan Schroeder" <[EMAIL PROTECTED]> Sent: Monday, May 14, 2001 7:04 PM Subject: Re: [PHP] ssh > WOW! installation

Re: [PHP] ssh

2001-05-14 Thread Ethan Schroeder
ent: Monday, May 14, 2001 5:26 PM Subject: [PHP] ssh > anyone got the easy directions to setting up > with SSH > > ***AND*** getting the certificate to work for it? > > My provider that runs php/mysql/etc only lets people use SSH connections > for telnet, which I agree with

Re: [PHP] ssh

2001-05-14 Thread Tyrone Mills
t; <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 14, 2001 3:26 PM Subject: [PHP] ssh > anyone got the easy directions to setting up > with SSH > > ***AND*** getting the certificate to work for it? > > My provider that runs php/mysql/etc only lets people u

[PHP] ssh

2001-05-14 Thread Dennis Gearon
anyone got the easy directions to setting up with SSH ***AND*** getting the certificate to work for it? My provider that runs php/mysql/etc only lets people use SSH connections for telnet, which I agree with. Right, now, I don't want to pay the $139 for the non open source windows SSH client.

Re: [PHP] SSH file transfers

2001-01-23 Thread Jirka Kosek
Kyle Jerviss wrote: > Yeek! Not quite what I meant. I don't think that web servers have any > business being on windows boxes. I was wondering if there were a way to > upload using something like scp from a windows (or other) browser to a > unix server. There is a nice program WinSCP at http:

Re: [PHP] SSH file transfers

2001-01-11 Thread Rouvas Stathis
Try pscp from putty : -Stathis. Kyle Jerviss wrote: > > Yeek! Not quite what I meant. I don't think that web servers have any > business being on windows boxes. I was wondering if there were a way to > upload using something like scp fr

RE: [PHP] SSH file transfers

2001-01-11 Thread Sam Leibowitz
To my knowledge, there's no way to make a browser do SCP without coming up with a custom plugin, which isn't likely to be within the scope of stuff you're willing to take on. Fortunately, someone else has done it for you. F-Secure SSH is an SSH terminal client that includes tunneling and file t

Re: [PHP] SSH file transfers

2001-01-10 Thread Kyle Jerviss
Yeek! Not quite what I meant. I don't think that web servers have any business being on windows boxes. I was wondering if there were a way to upload using something like scp from a windows (or other) browser to a unix server. bard wrote: > > the people who make putty (my favorite ssh client f

Re: [PHP] SSH file transfers

2001-01-10 Thread bard
the people who make putty (my favorite ssh client for windows) also make a command line scp program. this could be included as an exec() in a script I would think... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Re: [PHP] SSH file transfers

2001-01-10 Thread Kyle Jerviss
jeremy brand wrote: > > > How can I upload / download files using SSH through PHP? > > Use scp. > > I built a rather complex document system that is more > than I want to mention for this topic, but... > > > Has anyone ever did it before? > > Yes. You can run "any" program from php. Just us

Re: [PHP] SSH file transfer

2001-01-10 Thread Opec Kemp
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

Re: [PHP] SSH file transfers

2001-01-10 Thread Alex Black
t;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. &g