Network_Automation
Cisco Ssh Ubuntu
  1. no matching key exchange method found
  • open up the following file:
sudo vim /etc/ssh/ssh_config
 
  • set the kexAlgorithms to the error you get (i.e Unable to negotiate with 192.168.200.1 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1)
kexAlgorithms diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
  1. no matching host key type found. Their offer: ssh-rsa
  • add the following in your ssh config file, /etc/ssh/ssh_config :
HostKeyAlgorithms = +ssh-rsa
PubkeyAcceptedAlgorithms = +ssh-rsa
  • Add the following:
Host *
    PubkeyAcceptedKeyTypes +ssh-rsa
 
 
 
  1. no matching cipher found error:
  • We will open up the ssh_config file again
sudo vim /etc/ssh.ssh_config
 
  • and uncomment the the Ciphers key
Ciphers
  • save the file

  • And now we are able to login