GitLab SSH requests password and ignoring SSH Keys

后端 未结 2 676
野性不改
野性不改 2021-01-27 03:25

I have a fresh gitlab-omnibus installation on a CentOS 6 box, I have configured it correctly and can access the web interface, I\'ve added my SSH key however when I try to Git C

相关标签:
2条回答
  • 2021-01-27 03:48

    You need to turn off selinux: setenforce 0

    0 讨论(0)
  • 2021-01-27 03:54

    I had the exact same issue on CentOs, turned out to be due to Centrify being used to manage ssh keys, which is non standard, but part of our corporate server management processes.

    I'm not overly familiar with Centrify as its managed by another team, but I resolved this issue by creating a sym link from the gitlab authorised-keys file into /etc/sshd/auth-keys/git.

    The authorizedkeys file value gave me the location the sym link needed to go to, determined with sshd -T

    Resulting in this resolving my issue:

    ln -s /var/opt/gitlab/.ssh/authorized_keys /etc/ssh/auth-keys/git
    
    0 讨论(0)
提交回复
热议问题