3 # @(#) $Id: ssh.exp,v 1.4 2009/06/24 17:06:21 dcid Exp $
6 # Copyright (C) 2009 Trend Micro Inc.
9 # This program is a free software; you can redistribute it
10 # and/or modify it under the terms of the GNU General Public
11 # License (version 3) as published by the FSF - Free Software
15 if {[string compare $pass "NOPASS"] == 0} {
22 "WARNING: REMOTE HOST" {
23 send_user "\nERROR: RSA host key for '$hostname' has changed. Unable to access.\n"
26 "*sure you want to continue connecting*" {
28 expect "* password:*" {
33 "ssh: connect to host*" {
34 send_user "\nERROR: Unable to connect to remote host: $hostname .\n"
37 "no address associated with name" {
38 send_user "\nERROR: Unable to connect to remote host: $hostname .\n"
41 "*Connection refused*" {
42 send_user "\nERROR: Unable to connect to remote host: $hostname .\n"
45 "*Connection closed by remote host*" {
46 send_user "\nERROR: Unable to connect to remote host: $hostname .\n"
54 send_user "\nERROR: Timeout while connecting to host: $hostname . \n"