Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OpenSSH error: Algorithm negotiation fail

Status
Not open for further replies.

bfordz

Technical User
Nov 18, 2008
91
US
Ubuntu Server 16.04 with OpenSSH 7.2 package

I need to dump / upload my phone system backup files to a SFTP server so I setup this Linux machine to receive the files.

When I try and send the files I get this error message:
An error occurred while trying to connect to the sftp server xxx.xxx.xxx.45

My phone system log files show it as this error:
An error occurred while trying to connect to xxx.xxx.xxx.45 with s8800:Algorithm negotiation fail

My SSH log files show the error as this:
Oct 26 16:50:31 localhost sshd[2024]: fatal: Unable to negotiate with xxx.xxx.xxx.56 port 55751: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1 [preauth]

I did some research and I found I needed to add this to my ssh_config file:
KexAlgorithms +diffie-hellman-group1-sha1

Which hasn't made any difference.

Does anyone have any suggestions?
 
After I did a lot of research, reading and trial/error I got it figured out.

I needed to add both diffie-hellman lines separately.
Added to my sshd_config file;
"KexAlgorithms +diffie-hellman-group1-sha1"
"KexAlgorithms +diffie-hellman-group-exchange-sha1"
Both lines needed to be added

I still got the "Algorithm negotiation fail" message but I got a different error in my ssh log file.
"no matching cipher found. Their offer: aes128-cbc,3des-cbc,blowfish-cbc [preauth]"

So, I had to add another line to my sshd_config file;
"Ciphers aes128-cbc,3des-cbc,blowfish-cbc"

I'm now uploading my backup files via SFTP to my Ubuntu Server.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top