Why does ssh connection to gitlab not work (while http push and clone work fine)?

前端 未结 4 2389
野的像风
野的像风 2021-02-20 11:48

I run a x86 raring ringtail on a old pc and having installed bitnami gitlab 5.3.

Here is my error msg when trying to push the first master branch in SSH mode:

         


        
4条回答
  •  一个人的身影
    2021-02-20 12:34

    Check the permissions on the .ssh folder.

    Login as the git user and set with

    sudo su - git
    chmod 700 ~/.ssh
    chmod 600 ~/authorized_keys
    

    If still having issues use the verbose output from ssh to gain more info

    ssh -v  ssh -T git@my-server.com
    

    (Also it could be a selinux context issue if selinux is enabled and enforcing, see this blog)

提交回复
热议问题