After gitlab configure ssh key, or password is required, git clone http can.

problem:

Docker host installation gitlab, and then configure the ssh key is to enter a password or Permission denied (publickey) ..
After 1.gitlab configure ssh key, or password is required.
2. After the reset ssh key or not.

solve:

1. Check the ssh key has expired.
2. Check docker sshd is turned on.
3. Check the firewall restrictions.
4. The most important point:

  • View gitlab / config / gitlab.rb configuration, whether to open ssh port.
    gitlab_rails [ 'gitlab_shell_ssh_port'] = 2222
    gitlab_rails [ 'gitlab_shell_git_timeout'] = 800
  • Restart docker.
  • Retry, git clone SSH: // git @ your domain name: 2222 / user name or group name /test.git

success!

Reproduced in: https: //www.jianshu.com/p/836bc60a6529

Guess you like

Origin blog.csdn.net/weixin_34319374/article/details/91142416