X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fagentlessd%2Fscripts%2Fssh.exp;h=a99fa973ec4a3971f371dcc7ded9c21dd50b2f15;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=1a7463cd93f3755577a8c65883efd26cf7ab1b95;hpb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;p=ossec-hids.git diff --git a/src/agentlessd/scripts/ssh.exp b/src/agentlessd/scripts/ssh.exp index 1a7463c..a99fa97 100755 --- a/src/agentlessd/scripts/ssh.exp +++ b/src/agentlessd/scripts/ssh.exp @@ -1,24 +1,20 @@ #!/usr/bin/env expect -# @(#) $Id: ./src/agentlessd/scripts/ssh.exp, 2011/09/08 dcid Exp $ - # 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. - if {[string compare $pass "NOPASS"] == 0} { source $sshnopasssrc return } - expect { "WARNING: REMOTE HOST" { send_user "\nERROR: RSA host key for '$hostname' has changed. Unable to access.\n" @@ -26,7 +22,7 @@ expect { } "*sure you want to continue connecting*" { send "yes\r" - expect "* password:*" { + expect "*assword:*" { send "$pass\r" source $sshloginsrc } @@ -47,7 +43,7 @@ expect { send_user "\nERROR: Unable to connect to remote host: $hostname .\n" exit 1; } - "* password:*" { + "*assword:*" { send "$pass\r" source $sshloginsrc }