<p>Hi,</p>
<p> </p>
<p>Here my config, I have 3 NAS servers using dropbear version 2014.63</p>
<p> </p>
<p>For development testing, I have 2 NAS using key authentication and the other only by using password (nas3).<br /><br />For this last one, there is no issue when I try to connect it directly by using Putty but I fail if I use dbclient from a TTY session opened on one of both other NAS servers (nas1 or nas2).</p>
<p> </p>
<p>Command used : export DROPBEAR_PASSWORD="xxxxxxxxxxxxxxxx" && dbclient -p 22 root@nas3<br /><br />I found why. As I use also pageant, dbclient send the key loaded on pageant instead of using the password set in the shell variable. On the server side, I note an endless loop as /.ssh/authorized_keys does not exist and repeat this sequence :</p>
<p>TRACE (8333): enter recv_msg_userauth_request<br />TRACE (8333): enter checkusername<br />TRACE (8333): shell is /bin/sh<br />TRACE (8333): test shell is '/bin/sh'<br />TRACE (8333): matching shell<br />TRACE (8333): uid = 0<br />TRACE (8333): leave checkusername<br />TRACE (8333): enter pubkeyauth<br />TRACE (8333): enter checkpubkey<br />TRACE (8333): enter checkpubkeyperms<br />TRACE (8333): enter checkfileperm(/)<br />TRACE (8333): leave checkfileperm: success<br />TRACE (8333): enter checkfileperm(//.ssh)<br />TRACE (8333): leave checkfileperm: success<br />TRACE (8333): enter checkfileperm(//.ssh/authorized_keys)<br />TRACE (8333): leave checkfileperm: stat() != 0<br />TRACE (8333): leave checkpubkeyperms<br />TRACE (8333): bad authorized_keys permissions, or file doesn't exist<br />TRACE (8333): leave checkpubkey: ret=-1<br />TRACE (8333): enter send_msg_userauth_failure<br /><br /><br />So my issue, is there a way to force dbclient to use only password authentication ?<br /><br />Note: if I open by cascading sessions: from nas1 I open a session on nas2 and then if I try to open a session on nas3, I do not have this issue.</p>
<p> </p>
<p>best rgds</p>
<p> </p>
<p>Stephane</p>
<p> </p>
<p> </p>