Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
bdf899bb
Commit
bdf899bb
authored
Feb 24, 2020
by
Ben Bodenmiller
Committed by
Evan Read
Feb 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve MaxStartups SSH settings
parent
d2166488
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
doc/topics/git/troubleshooting_git.md
doc/topics/git/troubleshooting_git.md
+23
-4
No files found.
doc/topics/git/troubleshooting_git.md
View file @
bdf899bb
...
...
@@ -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`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment