Skip to content

SSH Handshake Error #95

Description

@mdg-utility

I'm not sure if the JEC is still being developed or if its been abandoned, but I'm getting a handshake error when trying to connect to a git repo.

At first, it told me that it couldn't find the known_hosts file:

Could not read configuration: unable to find any valid known_hosts file, set SSH_KNOWN_HOSTS env variable 

The SSH_KNOWN_HOSTS environment variable isn't documented on https://support.atlassian.com/jira-service-management-cloud/docs/configure-jira-edge-connector/ but I added the path in my config.

Then it fails to connect with a handshake error.

Could not read configuration: ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: [curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha1], server offered: [diffie-hellman-group14-sha256 diffie-hellman-group16-sha512 diffie-hellman-group-exchange-sha256 diffie-hellman-group18-sha512 kex-strict-s-v00@openssh.com] 

Is there another hidden SSH environment variable that resolves this, or is JEC using an outdated SSH implementation? I asked ChatGPT and it said that JEC is using github.com/go-git/go-git/v5 v5.2.0 and it does have a key exchange property that could be set, but I'm not seeing any configuration or environment variable documented to handle that.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions