Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 28242  / 3 Years ago, mon, november 8, 2021, 11:29:29

I installed openssh-server in Ubuntu server 16.04 and in /etc/ssh/ssh_config I added:



MaxAuthTries 3
PasswordAuthentication YES


and then restarted the ssh server. When I try to connect from a a different pc with ssh I get a message
Algorithm Negotiation failed



back in server, when I run systemctl status ssh I get this error



Unable to negotiate with 192.168.0.132 port 63428: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1



I edit the /etc/ssh/sshd_config add I add the line



KexAlgorithms=+diffie-hellman-group1-sha1


and now I get a different error, when I run the systemctl status ssh



Unable to negotiate with 192.168.0.132 port 63428: no matching key exchange method found. Their offer: aes128-cbc,3des-cbc, blowfish-cbc,cast128-cbc,twofish-cbc,arcfour [preauth]


More From » 16.04

 Answers
1

You are connecting to new system (Ubuntu 16.04) from some very old SSH client that does not support any contemporary algorithms and this is a reason why it fails to connect. You should really update your client.


Or continue enabling the outdated protocols that might not be secure today. Using


KexAlgorithms +diffie-hellman-group1-sha1
Ciphers +aes128-cbc

you should be able to connect.


[#11927] Tuesday, November 9, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kilusy

Total Points: 171
Total Questions: 110
Total Answers: 128

Location: Cayman Islands
Member since Sat, Dec 5, 2020
3 Years ago
;