Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Cannot make SshClient stop echo-ing

$
0
0
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....
        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

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>