question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

no matching key exchange method found.

See original GitHub issue

I am trying to copy my build Artifacts to my Linux Server using azure-piplines and this task:

- task: CopyFilesOverSSH@0
  inputs:
    sshEndpoint: 'pillbox'
    sourceFolder: '$(build.artifactstagingdirectory)'
    contents: 'AmiKoWindows/bin/Release/Amiko-Installer/Amiko-Installer.msi'
    targetFolder: '/home/ftp/Amiko_Desitin_Win7.msi'

The SSH Copy-Job always fails. My SSH log on the receiving end says:

Jun 12 16:02:15 [sshd] Unable to negotiate with 137.135.130.50 port 1984: no matching key exchange method found. Their offer: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1 [preauth]

I use Ed25519 which is the most recommended public-key algorithm available today.

any thoughts on when Azure-Pipeline-Tasks may support that? The offered key exchange methods seem a bit outdated AFAICT.

You can find the build here: https://dev.azure.com/ywesee/AmiKo_Csharp/_build/results?buildId=33

This may be related: #8818, https://github.com/MicrosoftDocs/vsts-docs/issues/3169

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
anatolybolshakovcommented, May 18, 2022

Hi everyone! Current ‘ssh2’ version for CopyFilesOverSSHV0 task is 1.4.0, which should resolve this issue - please let us know if you still see it.

1reaction
anatolybolshakovcommented, Apr 28, 2020

@zdavatz Sorry for closing it, I reopened issue and marked as duplicate - you can follow the link below to be up to date with the progress regarding this issue

Duplicate of #11443

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to enable diffie-hellman-group1-sha1 key exchange on ...
I got Unable to negotiate with 192.168.1.1 port 22: no matching key exchange method found. Their offer: curve25519-sha256 ...
Read more >
How to Fix 'No Matching Key Exchange Method Found' on Mac
These are instructions on how to fix the 'no matching key exchange method found' error message when trying to SSH on Mac.
Read more >
macOS – SSH Error 'No Matching Exchange Method Found'
Mac SSH error Problem seen after upgrading macOSX to Sierra, where Open SSH Version 7 stops you communicating with devices using RSA SHA1...
Read more >
SSH oh MY: no matching key exchange method found. Their ...
Unable to negotiate with 192.168.2.1 port 22: no matching host key type found. Their offer: ssh-rsa. No worries, we can fix that:
Read more >
SSH: "no matching key exchange method found" when ...
ssh remotehost Unable to negotiate with 1.2.3.4 port 22: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found