Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to setup a simple script to update the configuration on a Dell PowerConnect 6224. I have SSH setup and working and can connect to the switch using either Putty or PLink but when I use plink's -m option to specify the file containing the commands I get a "packet integrity error".

Plink will connect fine without the -m option, or with an empty command file, but as soon as I add a command (eg. "quit") to the file it fails.

Has anyone had any luck scripting commands to these switches?

The full -v output is:

Looking up host "192.168.100.2"
Connecting to 192.168.100.2 port 22
Server version: SSH-1.99-OpenSSH_4.3
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-rsa 1024 97:e5:8e:d6:a5:0d:b0:a6:96:78:be:93:e3:57:79:d4
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 "test-user".
Keyboard-interactive authentication refused
Sent password
Access granted
Opened channel for session
Received disconnect message (protocol error)
Disconnection message text: Packet integrity error.
Server sent disconnect message
type 2 (protocol error):
"Packet integrity error."
FATAL ERROR: Server sent disconnect message
type 2 (protocol error):
"Packet integrity error."

share|improve this question

1 Answer

I know this is a stale post, but I'm also trying to do the same thing on a Dell PowerConnect switch with no luck.

Here's all I'm trying to do:

plink -v admin@10.10.10.1 -l admin -pw password -m testswitch-plink.txt

Where testswitch-plink.txt contains:

en

copy running-config tftp://10.10.10.1/backup/testswitch/running-config

y

quit

Where 10.10.10.1 is the TFTP server.

But the output I see is this:

Looking up host "10.10.10.1"

Connecting to 10.10.10.1 port 22

Server version: SSH-1.99-OpenSSH_4.3

Using SSH protocol version 2

We claim version: SSH-2.0-PuTTY_Release_0.62

Doing Diffie-Hellman group exchange

Doing Diffie-Hellman key exchange with hash SHA-1

Host key fingerprint is:

ssh-rsa 1024 cf:41:9d:e7:ba:e4:ee:35:b5:6c:b2:a5:c2:55:40:26

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".

Attempting keyboard-interactive authentication

Server refused keyboard-interactive authentication

Sent password

Access granted

Opened channel for session

Received disconnect message (protocol error)

Disconnection message text: Packet integrity error.

Server sent disconnect message

type 2 (protocol error):

"Packet integrity error."

FATAL ERROR: Server sent disconnect message

type 2 (protocol error):

"Packet integrity error."

I can manually use plink from the CLI to run these commands on the switch, but I would like to automate this process. I'm guessing the problem is when I need to issue the enable command.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.