SSH

SSH Password Authentication

Description:

Connects to a remote system through SSH using PHP using username & password authentication.

No need to compile just run using php and your away.

You do need PHP module ssh2 this is a one file installation with pecl (I’ve even attached the module in case if like me your servers aren’t attached to the internet)

http://www.php.net/manual/en/ssh2.installation.php
http://pecl.php.net/package/ssh2

Be gentle I’m not a PHP expert 😉

Current Version

1.1

Last Release Date

2013-07-26

Compatible With

  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
  • Nagios Fusion

Owner


Project Files
Project Notes
There doesn't appear to be any system available with nagios to login via SSH using a username and password without compiling a lot of tools which was not practical for us, so I write my own PHP system. There is now a terminal mode, if you find the command waits forever this is likely because the command has been processed and its offered up a # prompt to the system which will cause it to wait forever and a day, however the -t option will open a virtual terminal and will end by sending an exit command which should solve the issue. The script is designed to be called from within other systems which is why its very generic. SSH Online Password Authentication System v1.1 Connects over ssh using a username and password /opt/openitc/nagios/libexec/ssh_pass_auth.php -h [HOSTIP] -u [USER] -p [PASS] -t -d -m -c [COMMAND] -m Mulitple commands, parse each seperately, seperate with ; in the command string -d Debug, print what's happening -t Open a virtual terminal (used if you are having problems with the standard mode)
Reviews (1) Add a Review
good plugin - could use improvement
by kingkami, July 31, 2013

The libssh2 requirement that this plugin has makes it not as deployable or as reliable as it could be. In particular, I'd suggest the SSH auth stuff be rewritten to use phpseclib: http://phpseclib.sourceforge.net/ Good plugin otherwise!



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
3 (1)
Favorites
0
Views
43,415