It is a normal behavior of a terminal that the server send you back the entered text. Normally a terminal only displays the data received by the server.
I guess the problem you have is that you have to handle the xterm protocol.
Here you have a good overview of the xterm protocol: http://www.xfree86.org/current/ctlseqs.html
Have you tried to executre commands with the SshCommand class? This is normally much easier.
I guess the problem you have is that you have to handle the xterm protocol.
Here you have a good overview of the xterm protocol: http://www.xfree86.org/current/ctlseqs.html
Have you tried to executre commands with the SshCommand class? This is normally much easier.