Hey Matt,<div><br></div><div>I got an Idea to avoid this may be I can read the same username and pass this username as an option to CLI when login.</div><div><br></div><div>I created another username called cliusername in authstate struct and I am trying to access it in session_command function, svr-chansession.c.</div>
<div><br></div><div>Any inputs how to do this ??</div><div><br></div><div>Thank you for your support.</div><div><br></div><div>Reddy.<br><div><br><div class="gmail_quote">On Wed, Sep 26, 2012 at 8:27 PM, Matt Johnston <span dir="ltr">&lt;<a href="mailto:matt@ucc.asn.au" target="_blank">matt@ucc.asn.au</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I don&#39;t think you can avoid it - the best you can do is to<br>
put &quot;<a href="mailto:something@192.168.14.1">something@192.168.14.1</a>&quot; in the host field so it&#39;ll send<br>
a username without prompting.<br>
<br>
The SSH protocol requires a username in all authentication<br>
requests, so PuTTY assumes it&#39;s going to be necessary.<br>
<br>
Cheers,<br>
Matt<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Sep 26, 2012 at 09:51:55AM +0800, chinna obireddy wrote:<br>
&gt; Hey Matt,<br>
&gt;<br>
&gt; I was able to make it work for any username login return authentication<br>
&gt; success. But the problem is that Putty(Windows) asks for user name, though<br>
&gt; any username will do actually. I don&#39;t want the ssh client ask the user to<br>
&gt; enter username at all. How could I achieve that ??<br>
&gt;<br>
&gt; SSH client:<br>
&gt;<br>
&gt; Login as: press enter -- shouldn&#39;t prompt at all<br>
&gt; username:xxx(CLI auth)<br>
&gt; password:xxx(CLI auth)<br>
&gt;<br>
&gt; Reddy<br>
&gt;<br>
&gt; On Tue, Sep 25, 2012 at 8:49 PM, Matt Johnston &lt;<a href="mailto:matt@ucc.asn.au">matt@ucc.asn.au</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; Take a look at<br>
&gt; &gt; <a href="https://secure.ucc.asn.au/hg/dropbear/rev/0edf08895a33" target="_blank">https://secure.ucc.asn.au/hg/dropbear/rev/0edf08895a33</a> - it<br>
&gt; &gt; sends &quot;success&quot; for the first auth request.<br>
&gt; &gt;<br>
&gt; &gt; Matt<br>
&gt; &gt;<br>
&gt; &gt; On Tue, Sep 25, 2012 at 04:39:26PM +0800, chinna obireddy wrote:<br>
&gt; &gt; &gt; Dear All,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; As per the thread<br>
&gt; &gt; &gt; <a href="http://thread.gmane.org/gmane.network.ssh.dropbear/68/focus=75" target="_blank">http://thread.gmane.org/gmane.network.ssh.dropbear/68/focus=75</a> I was<br>
&gt; &gt; &gt; successfully made changes to launch CLI application with dropbear ssh.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; But Putty(SSH client) is still asking for Login name, though this is not<br>
&gt; &gt; &gt; going to be used It looks weird for user asking user name twice. Since<br>
&gt; &gt; the<br>
&gt; &gt; &gt; CLI application has it&#39;s own authentication method.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Suggest me how can I completely ignore Authentication packets in the<br>
&gt; &gt; server<br>
&gt; &gt; &gt; side.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; --Reddy.<br>
&gt; &gt;<br>
</div></div></blockquote></div><br></div></div>