I get this back:
Last interactive login on Monday, 1-DEC-2014 16:07:13.06
Last non-interactive login on Monday, 1-DEC-2014 09:18:02.75
System Detective is monitoring activity on this system.
←[c←\←Z←[0c
%SET-W-NOTSET, error modifying FTA1959:
-SET-I-UNKTERM, unknown terminal type
←[c
After using this: PasswordAuthenticationMethod authMethod = new PasswordAuthenticationMethod("MyUser", "MyPassword");
ConnectionInfo connectionInfo = new ConnectionInfo("MyServer", "MyUser", authMethod);
client = new SshClient(connectionInfo);
client.Connect();
stream = client.CreateShellStream(@"vt100", 80, 24, 800, 600, 1024);
stream.Write("env | grep TERM\n");
stream.Write("echo $TERM\n");
reader = new StreamReader(stream);
Thread.Sleep(15000);
output = reader.ReadToEnd().Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);
foreach(string line in output)
{
Console.WriteLine(line);
}
Console.Read();
Our system is running OpenVMS