Hint Error: Server responded "algorithm negotiation failed"
Workaround:
Modify the SSH configuration file/etc/ssh/sshd_config file
Add the following code at the end:
Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256, arcfour,blowfish-cbc,cast128-cbcmacs hmac-md5,hmac-sha1,umac-@openssh. com,hmac-ripemd160, hmac-sha1-, hmac-md5-kexalgorithms Diffie-hellman-group1-sha1, DIFFIE-HELLMAN-GROUP14-SHA1,DIFFIE-HELLMAN-GROUP-EXCHANGE-SHA1,DIFFIE-HELLMAN-GROUP-EXCHANGE-SHA256, Ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,[email protected]
In addition, to ensure normal SSH connection, you need to modify the configuration file again
PermitRootLogin without-password
comment out the "" plus a "#" in the configuration file, and then add the phrase " PermitRootLogin yes
"
After you restart the sshd service, you can connect normally.
sudo service ssh restart
UBUNTU16.04SSH cannot connect