CobbLiu
CobbLiu

Reputation: 457

Can not clone project from gitlab

I've lauched a private project named 'project_name' on GitLab.

But when I try to use "git clone [email protected]:user_name/project_name.git" on another server, GitLab informed me to input "[email protected]'s password".
After inputing three unknow password, It said "Permission denied (publickey,password,keyboard-interactive)"!

How Can I Config My Server To Access 'project_name' Successfully?

Upvotes: 2

Views: 7255

Answers (1)

VonC
VonC

Reputation: 1328552

I've register my SSH key on server A

You need to create a register another pair of public/private ssh keys on server B, in order for your git clone command to succeed there.

(This is much better than copy your public/private keys from ~/.ssh of server A to server B: you are not supposed to reuse a private ssh key).

Upvotes: 3

Related Questions