Alertra Script Language 1.9

ssh

Connects to a SSH server. If you supply a userid and password, this check will connect to the SSH and attempt to login. If the login fails, an error will be generated. If you do not supply any credentials, this check will connect to the SSH server, but not attempt to login. As long as the socket connect is made and any sort of SSH version string is sent, the check will succeed.

usage: ssh [userid] [password]

parameters:

req name type description
N userid expression The userid to use when logging into the SSH server
N password expression The password to use when logging into the SSH server

examples

ssh

Connects to the SSH server identified in the last dns command.

ssh "joe" "garage"

Connects to the SSH server identified in the last dns command. The user "joe" and password "garage" are supplied for the SSH server authentication.


Alertra Script Language: Language Reference