diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-24 03:09:05 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-24 03:09:05 +0000 |
commit | 07d0374b204881f2bd64ed897e4bbab19f180cc9 (patch) | |
tree | ed7837a31c0edae5e8ec876626b0bf3ecb3db68c /doc/topics/git/troubleshooting_git.md | |
parent | 2ed3b0abccc8de391f1a9de2bc5785d3e0f5b018 (diff) | |
download | gitlab-ce-07d0374b204881f2bd64ed897e4bbab19f180cc9.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/topics/git/troubleshooting_git.md')
-rw-r--r-- | doc/topics/git/troubleshooting_git.md | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/doc/topics/git/troubleshooting_git.md b/doc/topics/git/troubleshooting_git.md index 446c2c0db4c..8270fad7086 100644 --- a/doc/topics/git/troubleshooting_git.md +++ b/doc/topics/git/troubleshooting_git.md @@ -101,19 +101,38 @@ ssh_exchange_identification: read: Connection reset by peer fatal: Could not read from remote repository. ``` +or + +```text +ssh_exchange_identification: Connection closed by remote host +fatal: The remote end hung up unexpectedly +``` + This error usually indicates that SSH daemon's `MaxStartups` value is throttling -SSH connections. This setting specifies the maximum number of unauthenticated +SSH connections. This setting specifies the maximum number of concurrent, unauthenticated connections to the SSH daemon. This affects users with proper authentication credentials (SSH keys) because every connection is 'unauthenticated' in the beginning. The default value is `10`. -Increase `MaxStartups` by adding or modifying the value in `/etc/ssh/sshd_config`: +Increase `MaxStartups` on the GitLab server +by adding or modifying the value in `/etc/ssh/sshd_config`: ```text -MaxStartups 100 +MaxStartups 100:30:200 ``` -Restart SSHD for the change to take effect. +`100:30:200` means up to 100 SSH sessions are allowed without restriction, +after which 30% of connections will be dropped until reaching an absolute maximum of 200. + +Once configured, restart the SSH daemon for the change to take effect. + +```shell +# Debian/Ubuntu +sudo systemctl restart ssh + +# CentOS/RHEL +sudo service sshd restart +``` ## Timeout during `git push` / `git pull` |