Failed to reconcile key exchange method with Mina deployment

I come across this message when deploying with Mina, but not sure why Git cannot execute the repo.

I tried switching sshd_config due to the message Unable to negotiate a key exchange method, but still can't figure out what is going on. Thanks for the help.

   -----> Creating a temporary build path
          $ touch "deploy.lock"
          $ mkdir -p "$build_path"
          $ cd "$build_path"

   -----> Cloning the Git repository
          $ git clone "git@github.com:repo/project.git" "/home/deploy/project/scm" --bare
          Cloning into bare repository '/home/deploy/project/scm'...
          Unable to negotiate a key exchange method
          fatal: Could not read from remote repository.

          Please make sure you have the correct access rights
          and the repository exists.
    !     ERROR: Deploy failed.

   -----> Cleaning up build
          $ rm -rf "$build_path"
          Unlinking current
          $ rm -f "deploy.lock"
          OK

    !     Command failed.
          Failed with status 1 (19)
+1
source share
1 answer

The problem is that your local SSH client and the remote endpoint in GitHub cannot agree on a common key exchange method.

This will happen when you dig into the set of available key exchange methods or use a very old and outdated SSH client that does not support any method that is still considered safe.

, GitHub: .

, SSH:

export GIT_SSH_COMMAND="ssh -vv"

, config_ssh ~/.ssh/.config, . , Host *:

# Github needs diffie-hellman-group-exchange-sha1 some of the 
# time but not always.
Host github.com
    KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1
+2

Source: https://habr.com/ru/post/1687821/


All Articles