X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=debian%2Fossec-hids%2Fvar%2Fossec%2Fagentless%2Fssh_nopass.exp;fp=debian%2Fossec-hids%2Fvar%2Fossec%2Fagentless%2Fssh_nopass.exp;h=0000000000000000000000000000000000000000;hp=d4eb3d93c59828a1b883c6231fb295a2d595964c;hb=946517cefb8751a43a89bda4220221f065f4e5d1;hpb=3f728675941dc69d4e544d3a880a56240a6e394a diff --git a/debian/ossec-hids/var/ossec/agentless/ssh_nopass.exp b/debian/ossec-hids/var/ossec/agentless/ssh_nopass.exp deleted file mode 100755 index d4eb3d9..0000000 --- a/debian/ossec-hids/var/ossec/agentless/ssh_nopass.exp +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/env expect - -# Agentless monitoring -# -# Copyright (C) 2009 Trend Micro Inc. -# All rights reserved. -# -# This program is a free software; you can redistribute it -# and/or modify it under the terms of the GNU General Public -# License (version 2) as published by the FSF - Free Software -# Foundation. - -expect { - "WARNING: REMOTE HOST" { - send_user "\nERROR: RSA host key for '$hostname' has changed. Unable to access.\n" - exit 1; - } - "*sure you want to continue connecting*" { - send "yes\r" - source $sshnopasssrc - return - } - "ssh: connect to host*" { - send_user "\nERROR: Unable to connect to remote host: $hostname .\n" - exit 1; - } - "no address associated with name" { - send_user "\nERROR: Unable to connect to remote host: $hostname .\n" - exit 1; - } - "*Connection refused*" { - send_user "\nERROR: Unable to connect to remote host: $hostname .\n" - exit 1; - } - "*Connection closed by remote host*" { - send_user "\nERROR: Unable to connect to remote host: $hostname .\n" - exit 1; - } - "* password:*" { - send_user "\nERROR: Public key authentication failed to host: $hostname .\n" - exit 1 - } - "*\\\$" { - send_user "\nINFO: Started.\n" - } - "*#" { - send_user "\nINFO: Started.\n" - } - timeout { - send_user "\nERROR: Timeout while connecting to host: $hostname . \n" - exit 1; - } -}