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"><<a href="mailto:matt@ucc.asn.au" target="_blank">matt@ucc.asn.au</a>></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't think you can avoid it - the best you can do is to<br>
put "<a href="mailto:something@192.168.14.1">something@192.168.14.1</a>" in the host field so it'll send<br>
a username without prompting.<br>
<br>
The SSH protocol requires a username in all authentication<br>
requests, so PuTTY assumes it'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>
> Hey Matt,<br>
><br>
> I was able to make it work for any username login return authentication<br>
> success. But the problem is that Putty(Windows) asks for user name, though<br>
> any username will do actually. I don't want the ssh client ask the user to<br>
> enter username at all. How could I achieve that ??<br>
><br>
> SSH client:<br>
><br>
> Login as: press enter -- shouldn't prompt at all<br>
> username:xxx(CLI auth)<br>
> password:xxx(CLI auth)<br>
><br>
> Reddy<br>
><br>
> On Tue, Sep 25, 2012 at 8:49 PM, Matt Johnston <<a href="mailto:matt@ucc.asn.au">matt@ucc.asn.au</a>> wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > Take a look at<br>
> > <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>
> > sends "success" for the first auth request.<br>
> ><br>
> > Matt<br>
> ><br>
> > On Tue, Sep 25, 2012 at 04:39:26PM +0800, chinna obireddy wrote:<br>
> > > Dear All,<br>
> > ><br>
> > > As per the thread<br>
> > > <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>
> > > successfully made changes to launch CLI application with dropbear ssh.<br>
> > ><br>
> > > But Putty(SSH client) is still asking for Login name, though this is not<br>
> > > going to be used It looks weird for user asking user name twice. Since<br>
> > the<br>
> > > CLI application has it's own authentication method.<br>
> > ><br>
> > > Suggest me how can I completely ignore Authentication packets in the<br>
> > server<br>
> > > side.<br>
> > ><br>
> > > --Reddy.<br>
> ><br>
</div></div></blockquote></div><br></div></div>