Thanks for the response . Will check with this.

On Tue, Sep 4, 2012 at 7:09 PM, Guillaume Nodet <[email protected]> wrote:

> There is the SSH_MSG_DEBUG message though which is logged by the
> client/server upon reception.
>
> On Fri, Aug 31, 2012 at 3:42 PM, Kanupriya Dadariya <
> [email protected]> wrote:
>
> > Hi,
> >
> > I am using Apache Mina sshd . Do not have my own encoder/decoder. Need to
> > display the message to client terminal during authentication .
> >
> > Probably making some obvious mistake , Can somebody please help me out ?
> >
> > Here is the code snippet : I get the writeStatus as false always and
> don't
> > get the message displayed .
> >
> > =============================
> > IoBuffer buffer = IoBuffer.allocate(1024, true);
> >     buffer.setAutoExpand(true);
> >     try {
> >       buffer.putString("small", Charset.forName("UTF-8").newEncoder());
> >
> >     } catch (CharacterCodingException e) {
> >
> >     }
> >
> >     WriteFuture future = ioSession.write(buffer,
> > ioSession.getRemoteAddress());
> >     IoFutureListener iof = new MinaIOFutureListener();
> >     future.addListener(iof);
> >
> >     if(future.isWritten()){
> >       writeStatus = true;
> >     } else {
> >       writeStatus = false;
> >     }
> >     future.removeListener(iof);
> > =================================
> > Appreciate any help .
> >
>
>
>
> --
> ------------------------
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> FuseSource, Integration everywhere
> http://fusesource.com
>

Reply via email to