Hello,
i try to make a cronjob under Linux with the following script:
plink -v -ssh cisco@10.17.79.62 -pw ******** -m /usr/local/arcsight/fwsm/cisco-fwsm-plink
In cisco-fwsm-plink are the commands:
show runn
ena
************
conf t
changeto context NAME
show conn count
show traffic
quit
quit
Then i get the Error Message:
From backup@NAME.site Fri Mar 18 10:55:02 2011
X-Original-To: backup
Delivered-To: backup@NAME.site
From: root@NAME.site (Cron Daemon)
To: backup@NAME.site
Subject: Cron <backup@NAME> /usr/local/arcsight/fwsm/cisco-fwsm.sh
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/backup>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=backup>
Date: Fri, 18 Mar 2011 10:55:02 +0100 (CET)
Looking up host "10.17.79.62"
Connecting to 10.17.79.62 port 22
Server version: SSH-2.0-Cisco-1.25
We believe remote version has SSH-1 ignore bug
We believe remote version needs a plain SSH-1 password
We believe remote version can't handle SSH-1 RSA authentication
We claim version: SSH-2.0-PuTTY_Local:_Dec__9_2007_21:01:46
Using SSH protocol version 2
Using Diffie-Hellman with standard group "group1"
Doing Diffie-Hellman key exchange with hash SHA-1
Host key fingerprint is:
ssh-rsa 1024 *******************************************
Initialised AES-256 CBC client->server encryption
Initialised HMAC-SHA1 client->server MAC algorithm
Initialised AES-256 CBC server->client encryption
Initialised HMAC-SHA1 server->client MAC algorithm
Using username "cisco".
Sent password
Access granted
Opened channel for session
Started a shell/command
Sent EOF message
Server unexpectedly closed network connection
FATAL ERROR: Server unexpectedly closed network connection
If I start the script manually by commandline everthing works fine!
Any ideas?
Regards
Steffen