projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git]
/
src
/
agentlessd
/
scripts
/
ssh.exp
diff --git
a/src/agentlessd/scripts/ssh.exp
b/src/agentlessd/scripts/ssh.exp
index
238e373
..
a99fa97
100755
(executable)
--- a/
src/agentlessd/scripts/ssh.exp
+++ b/
src/agentlessd/scripts/ssh.exp
@@
-1,23
+1,20
@@
#!/usr/bin/env expect
#!/usr/bin/env expect
-# @(#) $Id: ssh.exp,v 1.4 2009/06/24 17:06:21 dcid Exp $
# Agentless monitoring
#
# Copyright (C) 2009 Trend Micro Inc.
# All rights reserved.
# 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
# This program is a free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public
-# License (version 3) as published by the FSF - Free Software
+# License (version 2) as published by the FSF - Free Software
# Foundation.
# Foundation.
-
if {[string compare $pass "NOPASS"] == 0} {
source $sshnopasssrc
return
}
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"
expect {
"WARNING: REMOTE HOST" {
send_user "\nERROR: RSA host key for '$hostname' has changed. Unable to access.\n"
@@
-25,7
+22,7
@@
expect {
}
"*sure you want to continue connecting*" {
send "yes\r"
}
"*sure you want to continue connecting*" {
send "yes\r"
- expect "* password:*" {
+ expect "*assword:*" {
send "$pass\r"
source $sshloginsrc
}
send "$pass\r"
source $sshloginsrc
}
@@
-46,7
+43,7
@@
expect {
send_user "\nERROR: Unable to connect to remote host: $hostname .\n"
exit 1;
}
send_user "\nERROR: Unable to connect to remote host: $hostname .\n"
exit 1;
}
- "* password:*" {
+ "*assword:*" {
send "$pass\r"
source $sshloginsrc
}
send "$pass\r"
source $sshloginsrc
}