ā10-24-2023 12:42 AM
Hi,
after a upgrade from xe 3.11.07 to 3.11.09 we cannot open a ssh session to our 4510+R Switch. Before the upgrade everything works fine. The error message in the log is:
%SSH-3-BAD_PACK_LEN: Bad packet lenghth
We zeroised the rsa key and generate it new but the error still occours.
Any idea?
Regards, Hubert
Solved! Go to Solution.
ā11-15-2023 03:42 PM - edited ā11-27-2023 02:51 AM
Thanks for the update and confirmation.
I have re-posted the EEM here to save people the time.
event manager applet KEX_ALGO
event syslog pattern "SSH-3-BAD_PACK_LEN"
action 1.0 cli command "enable"
action 2.0 cli command "conf t"
action 3.0 cli command "ip ssh server algorithm kex diffie-hellman-group-exchange-sha1 diffie-hellman-group14-sha1"
action 4.0 cli command "end"
Update (27 November 2023): CSCwi02895
IMPORTANT: The above EEM is a Workaround and should not be treated as a permanent "fix".
ā10-24-2023 01:46 AM
- Possibly your client does not support newer ciphers , examine with :
% nmap --script ssh2-enum-algos switch-hostname
and compare with available ciphers on the client ,
Linux ssh client (or perhaps others) also support verbose mode , which when enabled can also provide (similar) insights,
M.
ā10-24-2023 02:05 AM
I compared the ciphers on the 4510 and my clients. They was the same as before.
ā10-24-2023 02:16 AM
No clients (ubuntu, windows, debian, etc.) work after the xe upgrade.
ā10-24-2023 02:26 AM
We won't go back to xe 3.11.07 because there are security issues.
ā10-24-2023 02:39 AM - edited ā10-24-2023 02:43 AM
@Hubert Kupper wrote:
We zeroised the rsa key and generate it new but the error still occours.
How big is the key, 2048? 4096?
Is SSHv2 enabled?
ā10-24-2023 02:48 AM
sshv2 is enabled the key size is 2048
ā10-24-2023 02:55 AM
Before we did the upgrade, we changed nothing in the configuration.
ā10-24-2023 02:57 AM
there are dual supervisor 8 modules in redundancy mode in the switch.
ā10-24-2023 03:23 AM
After fallback to 3.11.07 for testing without changing the config on switch or clients, ssh works again.
ā10-24-2023 05:37 AM - edited ā10-24-2023 05:40 AM
Solved: Re: SSH ISSUE %SSH-3-BAD_PACK_LEN: Bad packet length - Cisco Community
suggests to check/upgrade your putty (or other ssh client) version
ā10-26-2023 12:44 AM
I used different clients on windows and linux an no one connects. When I downgrade to 3.11.07 all clients work fine.
ā10-24-2023 04:31 PM
Post the complete output to the command "sh ssh".
ā10-25-2023 12:02 AM
Thanks to all for your answers. I'm out of office today. Tomorrow I post the output.
ā10-25-2023 10:29 PM
sh ssh
%No SSHv2 server connections running.
# sh ip ssh
SSH Enabled - version 2.0
Authentication methods:publickey,keyboard-interactive,password
Authentication Publickey Algorithms:x509v3-ssh-rsa,ssh-rsa
Hostkey Algorithms:x509v3-ssh-rsa,ssh-rsa
Encryption Algorithms:aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
MAC Algorithms:hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-sha1-96
KEX Algorithms:ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1
Authentication timeout: 120 secs; Authentication retries: 3
Minimum expected Diffie Hellman key size : 2048 bits
IOS Keys in SECSH format(ssh-rsa, base64 encoded): SSH-KEY
Modulus Size : 4096 bits
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide