CGI bash or perl script to run ssh
Spyou
spyou at club-internet.fr
Wed Nov 26 07:37:47 CET 2003
At 00:31 26/11/2003, Peter Edmonds wrote:
>Can anyone provide an example cgi bash or perl script to run ssh ?
>
>I'd like to be able to have a link in the Extended Service information which
>would run a cgi that would ssh to a remote machine and run a specific
>command.
#!/bin/sb
ssh remotelogin at remotehost command
you'll have to make ssh public key exchange working between your monitoring
box and your remote host in order to avoid password prompt (see
http://cfm.gs.washington.edu/security/ssh/client-pkauth/)
Regards,
____________________________________
'Spyou' - www.spyou.org - root at spyou.org
#gtr / ircnet.kaptech.fr - UIN : 6871374
Please, tell me who i am !
- Supertramps
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list