03-30-2009 01:23 PM
For several years I have been using a W2K3 server to issue the 'configupload' command via Putty (plink actually). From my W2K3 server I have the command below setup to run as a scheduled task against my 48000's and ftp the config file to my ftp server. After upgrading the switches to v6.1.1d the batch command no longer works. Here is the command and its output:
C:\Program Files\Putty>plink -v -batch -ssh 126.96.36.199 -l admin -pw password configupload -ftp 188.8.131.52,ftpuser,director1.cfg,ftppassword
Looking up host "184.108.40.206"
Connecting to 220.127.116.11 port 22
Server version: SSH-2.0-OpenSSH_3.8.1p1
We claim version: SSH-2.0-PuTTY_Release_0.60
Using SSH protocol version 2
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange with hash SHA-1
Host key fingerprint is:
ssh-dss 1024 24:e8:48:0a:fe:e1:d0:a5:17:0e:3e:d3:8b:9c:49:8e
Initialised AES-256 SDCTR client->server encryption
Initialised HMAC-SHA1 client->server MAC algorithm
Initialised AES-256 SDCTR server->client encryption
Initialised HMAC-SHA1 server->client MAC algorithm
Using username "admin".
Keyboard-interactive authentication refused
Opened channel for session
Started a shell/command
rbash: configupload: command not found
Server sent command exit status 127
Disconnected: All channels closed
Can anyone tell me how to make this work again?
Also, I have tried to setup SSH but cannot get the keys to import or export. Here is the output from one of my export attempts:
login as: admin
DEV_DIR1:admin> sshutil showuser
DEV_DIR1:admin> sshutil importpubkey
Enter IP address:18.104.22.168
Enter remote directory:/
Enter public key name(must have .pub suffix):id_dsa.pub
Enter login name:ftpuser1
Failed to import public key.
Can anyone tell me what am I doing wrong?