3 # @(#) $Id: ./src/agentlessd/scripts/ssh.exp, 2011/09/08 dcid Exp $
7 # Copyright (C) 2009 Trend Micro Inc.
10 # This program is a free software; you can redistribute it
11 # and/or modify it under the terms of the GNU General Public
12 # License (version 2) as published by the FSF - Free Software
16 if {[string compare $pass "NOPASS"] == 0} {
23 "WARNING: REMOTE HOST" {
24 send_user "\nERROR: RSA host key for '$hostname' has changed. Unable to access.\n"
27 "*sure you want to continue connecting*" {
29 expect "* password:*" {
34 "ssh: connect to host*" {
35 send_user "\nERROR: Unable to connect to remote host: $hostname .\n"
38 "no address associated with name" {
39 send_user "\nERROR: Unable to connect to remote host: $hostname .\n"
42 "*Connection refused*" {
43 send_user "\nERROR: Unable to connect to remote host: $hostname .\n"
46 "*Connection closed by remote host*" {
47 send_user "\nERROR: Unable to connect to remote host: $hostname .\n"
55 send_user "\nERROR: Timeout while connecting to host: $hostname . \n"