Cloning via SSH not working but it works for https

Here is the command used to generate the key

ssh-keygen -t rsa -C “Email address”

public key added to the gitlab profile

git clone git@the repo

asking for password

Hi @ytessema4 & welcome to the GitLab forum :slight_smile:

With “asking for password”, do you that GitLab is doing that, or is the prompt maybe for the SSH key itself? It would help me help you if you shared the exact commands and console output.

Please also check our SSH-related recommendations in https://docs.gitlab.com/ee/ssh/README.html#common-steps-for-generating-an-ssh-key-pair and maybe https://docs.gitlab.com/ee/ssh/README.html#working-with-non-default-ssh-key-pair-paths.

With “asking for password”, do you that GitLab is doing that, or is the prompt maybe for the SSH key itself? It would help me help you if you shared the exact commands and console output.

There used to be a time when I would try to solve this without the information. Of course I would succeed, but it’s still pretty dumb thing to do when you don’t learn anything (new).