sshnet / sshnet/SSH.NET

KeyExchangeFailed

Open
#1,114 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
4.4k
Forks
993
Avg merge
9d 21h
Merged PRs (30d)
1

Description

I'm connecting to an external SFTP Server. I can connect using WinSCP which gives me the following information:

File transfer protocol = SFTP-6
Cryptographic protocol = SSH-2
SSH implementation = CerberusFTPServer_12.0 FIPS
Encryption algorithm = AES-256 SDCTR (AES-NI accelerated)
Server host key algorithm = ssh-rsa 2048

Trying to connect I get the following error

Renci.SshNet.Common.SshConnectionException: 'The connection was closed by the server: Key exchange failed: Could not agree on key exchange parameters (KeyExchangeFailed).

Thank you.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the SSH-2 algorithms reported by WinSCP with the key-exchange parameters supported by SSH.NET when connecting to CerberusFTPServer_12.0 FIPS. Reproduce the KeyExchangeFailed error if possible and determine whether the client can negotiate a compatible configuration; the issue is done when the incompatibility is fixed or clearly documented with the required details.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.