GitLab git user password

前端 未结 19 1269
借酒劲吻你
借酒劲吻你 2020-12-02 22:10

I have just installed GitLab.

I created a project called project-x.

I have created few users and assigned it to the project.

Now I tried to clone:

19条回答
  •  独厮守ぢ
    2020-12-02 22:38

    I had this same problem when using a key of 4096 bits:

    $ ssh-keygen -t rsa -C "GitLab" -b 4096
    $ ssh -vT git@gitlabhost
    ...
    debug1: Offering public key: /home/user/.ssh/id_rsa
    debug1: Authentications that can continue: publickey,password
    debug1: Trying private key: /home/user/.ssh/id_dsa
    debug1: Trying private key: /home/user/.ssh/id_ecdsa
    debug1: Next authentication method: password
    git@gitlabhost's password:
    Connection closed by host

    But with the 2048 bit key (the default size), ssh connects to gitlab without prompting for a password (after adding the new pub key to the user's gitlab ssh keys)

    $ ssh-keygen -t rsa -C "GitLab"
    $ ssh -vT git@gitlabhost
    Welcome to GitLab, Joe User!

提交回复
热议问题