Unable to login in remotely using ssh using rsa keys after last update

An update regarding git over ssh:

  • Generating new keys is most likely not an option at this moment. Hosts are currently only supporting ssh-rsa and according to Atlassian, they are working on rsa-sha2-256 and rsa-sha2-512 implementations. ed25519 will most likely not be supported anytime soon.

  • For a temporary workaround, only adding PubkeyAcceptedAlgorithms +ssh-rsa is not enough, HostkeyAlgorithms +ssh-rsa is also required.

  • Atlassian post: OpenSSH 8.8 client incompatibility and workaround - Atlassian Community

  • At the moment of writing, I know that Azure and Bitbucket git repositories have this problem, not sure about other hosts

Final ~/.ssh/config that worked for me:

Host ssh.dev.azure.com
    HostName ssh.dev.azure.com
    User git
    IdentityFile ~/.ssh/id_rsa
    IdentitiesOnly yes
    PubkeyAcceptedAlgorithms +ssh-rsa
    HostkeyAlgorithms +ssh-rsa
1 Like