I am trying to roll my own sshd based server but I am having some issues with 
the different clients and echoing what comes in.

It seems like most clients send each character to the server and expect the 
server to echo it. The term attribute is set to 'xterm <something> ' for PuTTY 
and *nix based ssh clients; cygwin sets 'cygwin'. 

The java sshd client sets 'dummy' for term. It does not send each character, 
but waits until the user presses Enter and thus does not need the server to 
echo. Echoing would just repeat what the user entered before the result is 
shown.

I am currently activating echo on the server when the term attribute starts 
with xterm or cygwin, but this does not seem a very good approach. God knows 
which other clients could connect.

Is there any way to determine in a clean way whether the sshd server should 
echo what comes in? Should it always echo and is the sshd client wrong here?



_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Reply via email to