static void Main(string[] args)
{
client = new SshClient("130.18.14.67", "", "");
client.Connect();
stream = client.CreateShellStream(@"xterm", 80, 24, 800, 600, 2048);
string cmd = "";
//flush buffer
stream.Flush();
while(true)
{
stream.DataReceived += StartAsyncRead;
Console.WriteLine("Logged in success!: ");
cmd = Console.ReadLine();
stream.WriteLine(cmd);
}
}