[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 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

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, $value)

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(/usr/bin/ssh

[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 to

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

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)); You can try

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: exec(ssh

Re: [PHP] SSH Authentication using php

2004-08-16 Thread Teren
setup, but I'd like to add a web login to make it more user friendly. Thanks Teren - Original Message - 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

Re: [PHP] SSH Authentication using php

2004-08-16 Thread Robby Russell
, 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 see anything with ssh. What i've tried to do is use the exec() and just

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 authpf

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 have authpf

[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

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 only

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 and php

2003-11-17 Thread Ryan A
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-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 beginner's

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 stop apache

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 :-) % % Good

[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 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

RE: [PHP] ssh command in php script

2003-11-11 Thread Warren Vail
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 Tue, 2003-11-11 at 01

[PHP] SSH in PHP script

2003-11-10 Thread tirumal b
Hello 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.

[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 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

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 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

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 ipaddr command`. I have the remote ip addr as trusted, dont ask for the password at all. when the execute the php

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

[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

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

RE: [PHP] SSH change password!

2003-01-24 Thread Mantas Kriauciunas
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 as apache

RE: [PHP] SSH change password!

2003-01-24 Thread Serge Paquin
12:03 PM To: Mantas Kriauciunas 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

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 passwd

[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

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

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

Re: [PHP] ssh

2001-05-23 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

Re: [PHP] ssh

2001-05-15 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 the

Re: [PHP] ssh

2001-05-15 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 request)

Re: [PHP] ssh

2001-05-15 Thread Gyozo Papp
. május 15. 00:26 Subject: [PHP] ssh anyone got the easy directions to setting up teraterm pro 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

RE: [PHP] ssh

2001-05-15 Thread scott [gts]
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 Pro, i can post it to you. But it takes a little time

[PHP] ssh

2001-05-14 Thread Dennis Gearon
anyone got the easy directions to setting up teraterm pro 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

Re: [PHP] ssh

2001-05-14 Thread Tyrone Mills
] To: [EMAIL PROTECTED] Sent: Monday, May 14, 2001 3:26 PM Subject: [PHP] ssh anyone got the easy directions to setting up teraterm pro 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

Re: [PHP] ssh

2001-05-14 Thread Ethan Schroeder
Subject: [PHP] ssh anyone got the easy directions to setting up teraterm pro 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

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 beats the HELL out of the teraterm project

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

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

Re: [PHP] SSH file transfers

2001-01-11 Thread Rouvas Stathis
Try pscp from putty : http://www.chiark.greenend.org.uk/~sgtatham/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 from a

Re: [PHP] SSH file transfers

2001-01-10 Thread Alex Black
ando2") 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. Since all my servers have SSH running I

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