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?