Quantcast
Channel: SSH.NET Library
Viewing all articles
Browse latest Browse all 2955

New Post: LOVE this project! I have a bizarre issue I'd like your opinion on...

$
0
0
Could this be the problem?

below is from: https://sshnet.codeplex.com/workitem/1584

And if it is, is there a simple way to just select which is used via a switch/option? I'm sure there are cases for each way...
Remove Line Feed from WriteLine method in Shellstream Class

description

When working with the expect method, it was discovered the WriteLine was sending an linefeed after a carriage return. This was throwing some SSH implementations off because the linefeed is being interpreted as a second carriage return.
 
I'm suggesting that:
 
var commandText = string.Format("{0}{1}", line, "\r\n");
 
be replaced with
 
var commandText = string.Format("{0}{1}", line, "\r");

Viewing all articles
Browse latest Browse all 2955

Trending Articles