cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
167
Views
0
Helpful
1
Replies

ssh connection on nexus switches

cardosocristian
Level 1
Level 1

I'm trying to connect from my Rocky Linux 9.3 Linux server that uses OpenSSH version 8.7 on Nexus 9k switches that run the software version 7 and version 9.3

In version 7 I get the following error

Unable to negotiate with 192.168.160.10 port 22: no matching host key type found. Their offer: ssh-rsa

So I went to the .ssh/config file and put the lines

Host 192.168.160.10
HostkeyAlgorithms +ssh-rsa

That's what I found on internet forums without success.

In version 9 I get the following error

Bad server host key: Invalid key length

I already tried running the command "crypto key generate rsa modulus 2048" to see if the error changed and I was also unsuccessful.

Apparently Cisco switches have a very old version of OpenSSH or very old encryption

Has anyone experienced this and managed to get around it?

1 Reply 1

marce1000
VIP
VIP

 

 - You may also try to specify a (the) supported cipher(s) on the command line as in :
               ssh -o KexAlgorithms=diffie-hellman-group-exchange-sha256 ....
  (the above being an example)

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '