bashsshgit-bashwpengine

SSH to wpengine works in windows command terminal but not git bash


Recently I had to get my hard drive replaced on my work machine and thus had to reconfigure everything. As a result I had to reinstall git bash. Before I was able to ssh fine into wpengine and now I cannot. I am able to connect via the regular windows terminal fine but when I try with git bash I am getting the "Permission denied (publickey)." error for the same exact command.

I have tried all the suggested options from wpengine and in the different questions related to this on other SE questions and nothing is working.

I am using a Windows machine on windows 10.

Here are the following things I have tried:

Any and all help would be appreciated. My guess is there is some kind of permissions issue going on the local machine?

Why would the request from git bash terminal to wpengine look different from windows command terminal?


Solution

  • I did solve my issue. If it helps you please use it!

    When I used the command to the ssh host with : ssh -v user@environment.wpengine.ssh.net info

    I got back this among the debug errors:

    debug1: Offering public key: /c/Users/USERNAME/.ssh/KEY_FILENAME RSA XXXXXXXXXXXXXXXXXXXXX explicit

    debug1: send_pubkey_test: no mutual signature algorithm

    debug1: No more authentication methods to try. user@environment.ssh.wpengine.net: Permission denied (publickey).

    After finding this page: https://transang.me/ssh-handshake-is-rejected-with-no-mutual-signature-algorithm-error/

    I was able to solve the issue by adding the line: PubkeyAcceptedAlgorithms +ssh-rsa to my ssh config file.

    Honestly I am not even 10% certain on WHY this worked, however, it solved my problem.