<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>ssh: kex_exchange_identification: read: Connection reset by peer</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/968 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="968"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document"&gt;


&lt;p&gt;Client:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
kex_exchange_identification: read: Connection reset by peer
Connection reset by 159.195.22.112 port 22
&lt;/pre&gt;
&lt;p&gt;Server:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
$ journalctl -efu ssh
[...]
drop connection #10 from [212.99.194.59]:59789 on [159.195.22.112]:22 Maxstartups
&lt;/pre&gt;
&lt;p&gt;&lt;tt class="docutils literal"&gt;$ man sshd_config&lt;/tt&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;dl class="docutils"&gt;
&lt;dt&gt;&lt;tt class="docutils literal"&gt;MaxStartups&lt;/tt&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the maximum number of concurrent unauthenticated connections to the SSH daemon. Additional connections will be dropped until  authentication  succeeds or the LoginGraceTime expires for a connection.  The default is 10:30:100.
Alternatively, random early drop can be enabled by specifying the three colon separated values start:rate:full (e.g. &amp;quot;10:30:60&amp;quot;).  sshd(8) will refuse connection attempts  with a probability of rate/100 (30%) if there are currently start (10) unauthenticated connections.  The probability increases linearly and all connection attempts are refused if the number of unauthenticated connections reaches full (60).&lt;/dd&gt;
&lt;/dl&gt;
&lt;/blockquote&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/968/rev-raw/55e3f7a2c3150da1e14439b43342e7e4513021c7/README.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/968#README.rst"&gt;README.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
