SSH Issue with Cisco Switch

So Today i wanted to login to my old Cisco Switch 2960 from my Suse Linux when i received the following error:

Unable to negotiate with port 22: no matching key exchange method found. Their offer: diffie-helman-group1-sha1
Note**: is ip of my switch with username salman

1) Make sure you configure ssh keys with 1024 bits when setting it up in the switch
2) From your Linux machine issue the following command:

# ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 salman@

Tip**: For Debugging SSH,  use ssh -vvv option.

Thanks for Reading

Join our FB Linux Group LZH
Subscribe to our YouTube Channel