<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">I am using <span class="" style="background:rgb(255,255,204)">Dropbear</span> 0.48 with uClinux-dist. Currently <span class="" style="background:rgb(255,255,204)">dropbear</span> server is working fine but while trying to run dbclient it throws write error. Some of the traces are:</span><div style="font-family:arial,sans-serif;font-size:13px"><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><div style="font-family:arial,sans-serif;font-size:13px">TRACE: leave process_packet</div><div style="font-family:arial,sans-serif;font-size:13px">TRACE: enter cli_sessionloop</div><div style="font-family:arial,sans-serif;font-size:13px">TRACE: enter send_msg_service_request: servicename=&#39;ssh-userauth&#39;</div><div style="font-family:arial,sans-serif;font-size:13px">TRACE: enter encrypt_packet()</div><div style="font-family:arial,sans-serif;font-size:13px">TRACE: encrypt_packet type is 5</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">TRACE: enter writemac</div><div style="font-family:arial,sans-serif;font-size:13px">TRACE: leave writemac</div><div style="font-family:arial,sans-serif;font-size:13px">TRACE: enter enqueue</div><div style="font-family:arial,sans-serif;font-size:13px">TRACE: leave enqueue</div><div style="font-family:arial,sans-serif;font-size:13px">TRACE: leave encrypt_packet()</div><div style="font-family:arial,sans-serif;font-size:13px">TRACE: leave send_msg_service_request</div><div style="font-family:arial,sans-serif;font-size:13px">TRACE: leave cli_sessionloop: sent userauth service req</div><div style="font-family:arial,sans-serif;font-size:13px">TRACE: enter write_packet</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">TRACE: enter cli_tty_cleanup</div><div style="font-family:arial,sans-serif;font-size:13px">TRACE: leave cli_tty_cleanup: not in raw mode</div><div style="font-family:arial,sans-serif;font-size:13px">TRACE: enter session_cleanup</div><div style="font-family:arial,sans-serif;font-size:13px">TRACE: enter chancleanup</div><div style="font-family:arial,sans-serif;font-size:13px">TRACE: leave chancleanup</div><div style="font-family:arial,sans-serif;font-size:13px">TRACE: leave session_cleanup</div><div style="font-family:arial,sans-serif;font-size:13px">dbclient: connection to <a href="http://pratik@10.10.10.1:22/" target="_blank">pratik@10.10.10.1:22</a> exited: error writing</div><div style="font-family:arial,sans-serif;font-size:13px">--------------------------------------------------------------------------------------------------------------</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>I have tried the following:</div><div>1) Run dbclient with -K option but still getting the same write error</div><div>2) Run dbclient with -y option but still getting the same write error</div><div><br></div><div>On further debugging I have found that this write comes because server (in this case Openssh) is getting timeout.</div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div><pre style="font-family:courier,&#39;courier new&#39;,monospace;font-size:14px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);line-height:19.6000003814697px">I am running microblaze processor at about 60mhz with hardware multiplier, divider enabled.</pre><pre style="font-family:courier,&#39;courier new&#39;,monospace;font-size:14px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);line-height:19.6000003814697px"><br></pre><pre style="font-family:courier,&#39;courier new&#39;,monospace;font-size:14px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);line-height:19.6000003814697px">From the wireshark capture i have seen that server is sending &quot;FIN&quot; packet. also server is sending the 2 ssh packets in one reply packet. Do not know the reason of this behavior.</pre><pre style="font-family:courier,&#39;courier new&#39;,monospace;font-size:14px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);line-height:19.6000003814697px"><br></pre><pre style="font-family:courier,&#39;courier new&#39;,monospace;font-size:14px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);line-height:19.6000003814697px">I am facing this problem for connection between <span style="font-family:arial,sans-serif;font-size:13px;line-height:normal;color:rgb(34,34,34)">dbclient &lt;----&gt; Openssh.</span></pre><pre style="font-family:courier,&#39;courier new&#39;,monospace;font-size:14px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);line-height:19.6000003814697px"><span style="font-family:arial,sans-serif;font-size:13px;line-height:normal;color:rgb(34,34,34)"><br></span></pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif" size="3">Please help as m stuck to this problem since very long. Appreciate your reply.</font></pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif" size="3"><br></font></pre></div></font></div><div>Attached the pcap file for your reference. apply &quot;<span style="color:rgb(40,40,40);font-family:Calibri;font-size:15px">ip.addr==10.216.114.137&quot; filter in pcap file. IP address is client having dbclient and other is server having openssh.</span></div><div><span style="color:rgb(40,40,40);font-family:Calibri;font-size:15px"><br></span></div><div><span style="color:rgb(40,40,40);font-family:Calibri;font-size:15px"><br></span></div><div><br></div>-- <br>Thanks &amp; Regards<br>Pratik Singh<br>
</div>