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

New Post: Running commands not returning results

$
0
0
Some commands are still freezing on the errreader.ReadToEnd() . Also command response in inconsistent. I can run the exact same command twice, first time it works, second time no response.
       cat /etc/*-release
Another issue is If I change the current directory it doesn't remember it between commands. Here is how I'm creating a connection:
        var PasswordConnection = new PasswordAuthenticationMethod(username, password);
        var KeyboardInteractive = new KeyboardInteractiveAuthenticationMethod(username);
        var connectionInfo = new ConnectionInfo(servername, username, PasswordConnection, KeyboardInteractive);

        var client = new SshClient(connectionInfo);
        client.Connect();

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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