Go to the switch log in, go to security, access then SSH. You can see here no keys are present. Use SSH2 as it’s more secure, so go over to the host keys management page, generate the DSA and RSA keys, then apply – wait for a little, now you can enable SSH admin, (disable version1)
From a terminal you can now log in – but you may get an error in which case use a specific key exchange as pictured.
ssh -oKexAlgorithms=+diffie-hellman-group14-sha1 firstname.lastname@example.org
Once in, use the ? to see the commands available, and enable then ? for the administration commands.
if you need to remove the ssh key with ‘ssh-keygen -R “hostname”‘
you can add the key algorthym perminantly to your ssh hosts file
add Host 18.104.22.168 KexAlgorithms +diffie-hellman-group14-sha1