Hi,
I’m a long-time Github user currently migrating to Gitlab. I’d like to configure SSH key authentication so I don’t have to type in my username and password every time. So far I have a partial success. Here’s what I did so far.
My workstation is running Linux (OpenSUSE Leap 15.1). My main user is kikinovak. I’m already using SSH key authentication for all my remote servers.
[kikinovak@alphamule:~] $ tree ~/.ssh/
/home/kikinovak/.ssh/
├── id_rsa
├── id_rsa.pub
└── known_hosts
0 directories, 3 files
I copied/pasted my public key to Gitlab. The test seems to work:
[kikinovak@alphamule:~] $ ssh -T git@gitlab.com
Welcome to GitLab, @kikinovak!
But when I try to fetch my dummy test repository from Gitlab, I’m still getting asked for credentials:
[kikinovak@alphamule:~] $ git clone https://gitlab.com/kikinovak/toto
Clonage dans 'toto'...
Username for 'https://gitlab.com':
What am I doing wrong here?
Cheers from the sunny South of France.