问题:上传本地公钥id_rsa.pub 到gitlab服务器后,还是提示输入密码,输入后还报错提示 Permission denied, please try again.
    image.png

    原因:
    (1)搭建GitLab的centos7服务器/etc/ssh目录下的sshd_config文件
    image.png
    解决:去掉注释#,重启ssh服务
    (2)使用docker-compose启动gitlab没有开放SSH
    image.png
    通过gitlab_rails[‘gitlab_shell_ssh_port’] = 2222开放gitlab22端口对应的宿主机端口

    转载自:https://blog.csdn.net/weixin_41756573/article/details/103955005