mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b0nn19 <b0n...@hotmail.com>
Subject RE: Indentation issue in ssh client
Date Tue, 04 Mar 2014 22:11:11 GMT
Hi Guillaume,

Thank you for your suggestions. I am able to solve the issue.


-------- Original message --------
From: Guillaume Nodet <gnodet@apache.org>
Date:02/28/2014  4:06 PM  (GMT-08:00)
To: dev@mina.apache.org
Subject: Re: Indentation issue in ssh client

When you create your shell on the server side, you may need to take care
about tty options that are sent by the client side according to its
terminal configuration.
Have a look at the ProcessShellFactory for how to handle some of those
flags.   Most probably, you need to translate any \n to \r\n before sending
them to the client.
All the pty modes (help available using "man stty") are available using
getPtyModes() on the Environment object which is given when the Command is


2014-02-28 23:26 GMT+01:00 b0nn19 <b0nn19@hotmail.com>:

> Hi,
> I am using ssh mina server and when I tried to connect to my ssh server
> from my ssh unix client I am seeing indentation in the client. See below:
> troy%ssh -p 8001 max
> SOCKSifying /usr/local/nms.complied/openssh/current/bin/ssh
> 11
> ^^11
> ^^^^^11
> So everytime I type any characters and enter return the next characters
> start below the previous one and not from the beginning of the line.
> I am trying to implement my own shell factory and display customized
> banner. But because of this indentation my customized banner is not being
> displayed correctly.
> Any help will be greatly appreciated.
> Thanks
> Paul

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message