[Solved] Remote URL test failed: Could not read from remote repository.

Reason:

I set a password when I generated the key, which caused this problem

Soution:

1. Regenerate the key through the command

ssh-keygen -t rsa -C "[email protected]"

Enter three times in a row, do not set a password (I just set a password here and caused the problem)

2. Go to C:\Users\username\.ssh and copy the content of id_rsa.pub, and then add it to gitlab (title will be automatically generated)

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *