05-28-2021 06:19 AM
When I try to connect to my switch I get this error
$ ssh cisco@192.168.7.203 Unable to negotiate with 192.168.7.203 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
And I just did a factory default on this box
System Description: SG300-52 52-Port Gigabit Managed Switch Firmware Version (Active Image): 1.4.11.5 Boot Version: 1.3.5.06
Configured it like this
configure interface vlan 1 ip address 192.168.7.203 255.255.255.0 no ip address dhcp ip default-gateway 192.168.7.1 end config ip ssh server ip ssh-client server authentication ip ssh-client source-interface vlan 1 end copy running-config startup-config reload
What am I missing?
This works, but I would like to configure the switch properly
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -c aes256-ctr cisco@192.168.7.203