Search code examples
gitsshvisual-studio-codessh-keygen

agent key RSA SHA256 returned incorrect signature type


i'm using vscode development container with docker but i have a problem when sharing git with container. i've setup git, ssh-add, ssh-agent as follows in here and everything work as well. But when i try to do git pull in container terminal it gives me error agent key RSA SHA256:xxxxxxxxxxxxxxxxxxx returned incorrect signature type, how to fix this problem?


Solution

  • It is a warning, as explained here.

    Try a regenerate, for testing, a new set of keys, making sure you do not use pageant/putty, but only openssh.
    And don't protect it with a passphrase (again, for testing), in order to avoid the ssh-agent step.

    ssh-keygen -t rsa -P "" -m PEM