Re: Columns setting not working on SSH connection - WeOnlyDo Discussion board

Re: Columns setting not working on SSH connection (General questions)

by Hannes Lowette, Tuesday, January 24, 2012, 12:54 (4685 days ago) @ woddrazen

[code]
this.sshClient = new SSH
{
Protocol = SSH.SupportedProtocols.SSHAuto,
Login = user,
Password = password,
Hostname = ipAddress,
Port = 22,
Blocking = true,
Timeout = 500,
Columns = 100,
Rows = 250,
Version = 2.5.3.139
};

try
{
this.sshClient.Connect();
string sshOutput;
do
{
sshOutput = this.sshClient.Receive();
}
while (!sshOutput.Trim().EndsWith(Prompt));
}
catch (Exception)
{
throw new ConnectionFailedException();
}
[/code]


Complete thread: