01-27-2018 03:50 AM - edited 03-08-2019 01:35 PM
Hi there,
I'm not able to ssh to other devices using 3850 Switch as SSH client.
PS: 3850 switch IOS version is: 16.3.5b (ssh client)
the ssh server is an ASA (9.6.3)
below is the Syslog:
how can I solve it?
01-27-2018 04:26 AM - edited 01-27-2018 04:28 AM
Hi
The SSH configuration should be:
conf t
hostname <name of the device>
ip domain name <domain.com example>
ip ssh version 2
ip ssh authen 3
ip ssh time 120
cryto key generate rsa <enter and type 1024 at least>
* if you are going to create local credentials*
username <user> privi 15 password <password>
line vty 0 15
login local
transport input ssh
* Do you have any ACL to allow just specific IP address to manage the devices?* The trouble could be caused because the terminal does not support the version configured, if you are using putty check the version configured on the settings on the left.
:-)
01-27-2018 04:57 AM
Hello,
in addition to Julio's remarks, what IP address are you using for SSH access ? The HSRP log message indicates that there is a mismatch between the configured authentication parameters. Are you using the standby IP to access the switch ?
Also, make sure the modulus (1024 or 2048) match on both sides (the ASA and the 3850). Try 1024 first...
01-27-2018 05:06 AM
It appears the client is setup to only accept advanced (Next Generation Encryption - NGE) cryptographic algorithms and the server offers a public key using the older RSA encryption method. the mismatch causes the attempted connection to fail.
Either the client needs to relax the requirements or a new public key need to be generated on the server.
Reference:
https://www.cisco.com/c/en/us/about/security-center/next-generation-cryptography.html
And I am not sure about your IOS version. There is a bug reported for the same:
https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvc96144/?referring_site=bugquickviewredir
My suggestion is that please regenerate the Key with 1024 bits.
Regards,
Deepak Kumar
01-27-2018 06:22 AM
At first, thank you for your advice. Since the 3850 Switch is our Core Switch, and if we want to login other devices I must use 3850 Switch as the SSH Client (this is our company policy T_T), So I prefer to relax the requirements of SSH client(3850 Switch), But I don't know how to configure it, cloud you please give me some hints?
01-27-2018 06:27 AM - edited 01-27-2018 10:24 AM
conf t
hostname <hostname of device>
Your Switch configuration as below:
ip domain name <yourdomain.com example>
ip ssh version 2
ip ssh authen 3
ip ssh time 120
cryto key generate rsa <enter and type 1024 at least>
line vty 0 15
login local
transport input ssh
Transport output ssh <<edited>>
Make sure you have a local account for emergency recovery process and AAA configuration on Switch.
Regards,
Deepak Kumar
01-27-2018 07:54 AM
thank you, I'll try it tomorrow.
01-27-2018 09:50 AM
@Deepak Kumar wrote:
conf t
hostname <hostname of device>
Your Switch configuration as below:
ip domain name <yourdomain.com example>
ip ssh version 2
ip ssh authen 3
ip ssh time 120
cryto key generate rsa <enter and type 1024 at least>
line vty 0 15
login local
transport input ssh
Make sure you have a local account for emergency recovery process and AAA configuration on Switch.
Regards,
Deepak Kumar
Hello deepak
You allow outbound ssh connections from the switch it should br
Transport output ssh
Res
paul
01-27-2018 09:58 AM
01-28-2018 12:08 AM
It doesn't work for our situation
01-27-2018 09:47 AM - edited 01-27-2018 09:48 AM
Hello
Just like to add -
Worth checking to see if the switch is allowing | denying ssh outbound
sh run | be vty
your should at least have
Line vty xx
transport output ssh
res
paul
01-28-2018 12:09 AM
I've tried it, but it doesn't work.
01-28-2018 12:37 AM
01-28-2018 04:33 AM
Are you able to ping the Switch management IP from the 3850? I assume you are using the same network segment to manage the devices. Also try to remove the key pair using the crypto key zeroize rsa from console and set the crypto key generate rsa, again.
06-14-2018 05:16 AM
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