Hi,
When I setup a connection to an SSH Server I see the commands I send later echoed back to me. How can I stop getting my commands echo'ed back to me?
I use the following code, with variations....
Please advise...
Regards,
Erik
When I setup a connection to an SSH Server I see the commands I send later echoed back to me. How can I stop getting my commands echo'ed back to me?
I use the following code, with variations....
AuthenticationMethod am = new PasswordAuthenticationMethod(Credentials.UserName, Credentials.Password);
ConnectionInfo connectionInfo = new ConnectionInfo( RemoteHostIP, Credentials.UserName, new AuthenticationMethod[] { am });
_sshClient = new SshClient(connectionInfo);
_sshClient.Connect();
Dictionary<TerminalModes, uint> terminalModes = new Dictionary<TerminalModes,uint>();
//terminalModes.Add(TerminalModes.ECHO, 0);
//terminalModes.Add(TerminalModes.ONOCR, 1);
_sshStream = _sshClient.CreateShellStream("xterm", 0, 0, 0, 0, 1024, null);//terminalModes);
I tried several terminalModes but without succes.Please advise...
Regards,
Erik