GitLab: Can't push code to server?

后端 未结 6 1510
傲寒
傲寒 2021-02-09 07:57

I\'ve installed GitLab on an Ubuntu Server. Everything seems to work fine except I can\'t push/pull/clone to/from the server.

When I push I get the general error message

6条回答
  •  面向向阳花
    2021-02-09 08:05

    I do not know if you have resolved this yet but what I found is if I generate a key with the email address I used in gitlab the process works. Steps I took:

    ssh-keygen -t rsa -C "#email address#"
    

    Creates a new ssh key using the provided email.

    Generates public/private RSA key pair.

    Next just use code below to dump your public key and add to GitLab SSH Keys

    cat ~/.ssh/#key name#.pub
    
    ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6eNtGpNGwstc....*
    

提交回复
热议问题