Gitlab error – ssh_exchange_identification: read: Connection reset by peer

The error keys;

Gitlab error - “ssh_exchange_identification: read: Connection reset by peer”

 

in /var/log/gitlab/gitlab-rails/production.log
.
.
.
ActionView::Template::Error ():
1: %li
2: .row
3: .col-md-8.col-lg-7
4: %strong.light-header= hook.url
5: %div
6: - ProjectHook.triggers.each_value do |event|
7: - if hook.public_send(event)
.
.
.

Solution

find in /etc/ssh/sshd_config

MaxStartups

and increase the numbers.

MaxStartups 500:10:600

500: Number of unauthenticated connections before we start dropping

10: Percentage chance of dropping once we reach 10 (increases linearly for more than 10)

600: Maximum number of connections at which we start dropping everything

Restart the sshd service via

/etc/init.d/ssh restart
OR
systemctl restart sshd

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x