<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0"></p>
<div>Hi,</div>
<div><br>
</div>
<div>I'm using Xilinx's 2019.1 Petalinux system which uses Dropbear 2018.76 by default. The target is</div>
<div>a Zynq 7000 running Linux.</div>
<div><br>
</div>
<div>The first issue is that with the open-ssh client the first password attempt fails every time. The</div>
<div>second attempt works. This was before I configured any host/login keys. A console login does not</div>
<div>have this issue.</div>
<div><br>
</div>
<div>The second issue is that with the host/login keys in place I continue to be prompted twice when</div>
<div>using ssh. With dbclient I am rejected altogether:</div>
<div><br>
</div>
<div>radsys@radsys-nuc:~$ dbclient root@10.160.33.150 -i ~/.ssh/id_rsa</div>
<div>root@10.160.33.150's password: </div>
<div>root@10.160.33.150's password: </div>
<div><br>
</div>
<div>dbclient: Connection to root@10.160.33.150:22 exited: Error reading: Connection reset by peer</div>
<div><br>
</div>
<div>My client system is Ubuntu 16.04 with the login (private) key stored as follows. It was generated</div>
<div>with dropbearkey:</div>
<div><br>
</div>
<div>radsys@radsys-nuc:~$ ls -al .ssh</div>
<div>drwx------ 2 radsys radsys 4096 Jun 19 19:33 .</div>
<div>drwxr-xr-x 35 radsys radsys 4096 Jun 17 19:20 ..</div>
<div>-rw------- 1 radsys radsys 805 Jun 19 19:31 id_rsa</div>
<div><br>
</div>
<div>On the server/embedded side I have the public portion of the private key above in authorized_keys</div>
<div>and a host key also generated using dropbearkey.</div>
<div><br>
</div>
<div>root@radio:~# ls -al /etc/dropbear</div>
<div>drwxr-xr-x 2 root root 0 Jun 20 02:25 .</div>
<div>drwxr-xr-x 24 root root 0 Jun 20 02:26 ..</div>
<div>-rw------- 1 root root 393 Jun 20 02:25 authorized_keys</div>
<div>-rw------- 1 root root 805 Jun 20 02:25 dropbear_rsa_host_key</div>
<div><br>
</div>
<div>Also, my clock is not set correctly on the embedded system. Is this an issue?</div>
<br>
<p></p>
<p style="margin-top:0;margin-bottom:0">Help would be greatly appreciated.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Thanks,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Kenny</p>
</div>
</body>
</html>