Skip to content

actionhank47/remote-ssh-exec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

remote-ssh-exec

Simple (beginner-level) php script that allows a client to log in to a server and run predetermined ssh commands

Pre-requisites:

  • PHP 5.x or newer
  • Apache2 web server
  • libssh2 or php-ssh2

Usage:

  • place the php files in the Apache2 webserver (i.e. /var/www/html)
  • open the index.php file within the web environment
  • login to a remote server by inputing the server address, username and password in the form
  • edit ssh commands in the run.php script

Additional notes:

  • tested in Ubuntu 16.04 client environment using Apache2 service
  • tested on Ubuntu 12.04, 14.04, 16.04 servers
  • error checking is very limited
  • includes some bootstrap styling
  • add more commands in the run.php

About

Simple php script that allows a client run predetermined ssh commands on a remote server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published