PHPClass - SSHExec
Hinweis
Ich veröffentliche hier für Daniel Altiparmak diesen Script.
Das Copyright liegt ausschliesslich bei Ihm!
Bitte wende dich bei Problemen, Feedback usw. direkt an Ihn:
daniel.altiparmak@systenius.de
Vielen Dank an Daniel, dass ich seine Arbeit auf meiner Homepage veröffentlichen darf!
Version
v1.0
Copyright
Copyright (C) 2004 Daniel Altiparmak
All Rights Reserved
daniel.altiparmak@systenius.de
Beschreibung
Mit diesem kleinen Script können shell-Befehle über PHP ausgeführt werden.
Introduction
PHP-Class SSHExec is a little helper i (Daniel Altiparmak) wrote to execute shell commands on Linux OS via PHP-Webscipts. Script is leaned on the original proc_open description by http://www.php.net.
Requirements
PHP version: at least 4.3.0
Linux OS
Download
sshexec.tar.gz [Dateigrösse: 2 KB] [Hits: 651]
[Link defekt?]
Installation
First of all you have to do a little preparatory work. Later i will write a little shell-script
that will replace this litte handwork.
Script works under Linux OS.
You need to create a SSH public key-pair, this is done as follows:
- login to your webserver/client
- su user of apache (i.g. su www-data)
- $ ssh-keygen -t dsa
- now copy the *pub file to your remote system
- $ cat ~/.ssh/*.pub | ssh root@remote-ip 'cat>>.ssh/authorized_keys',
if directory .ssh doesn't exit, create it ;-)
- now you should be able to login on the remote system, without using any passwort.
Change variables in ssh.ini.php !!!
Bug reporting
To report bugs, please send email to daniel.altiparmak@systenius.de
IMPORTANT
USE SOFTWARE ON YOUR OWN RISK. THERE ARE NO GUARANTIES! DISTRIBUTION OF THE SOFTWARE ONLY FOR NON-COMMERCIAL PURPOSES.
Kommentare
Bis jetzt sind 0 Kommentare vorhanden: Kommentar hinzufügen



