Saturday, July 9, 2022

[SOLVED] agent key RSA SHA256 returned incorrect signature type

Issue

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 href="https://code.visualstudio.com/docs/remote/containers#_sharing-git-credentials-with-your-container" rel="nofollow noreferrer">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


Answered By - VonC
Answer Checked By - Dawn Plyler (WPSolving Volunteer)