public void OpenSSH(string host, int port, string username, string password) { TerminalClient tc = new TerminalClient(); //"192.168.192.200" tc.Connect(host, port); tc.VersionExchange(); tc.KeyExchangeInit(); tc.KeyExchange(tc.algorithm_kex); tc.KeyExchangeFinal(); HashAlgorithm hash_sha1 = SHA1.Create(); tc.KeyVerify(tc.algorithm_server_host_key, hash_sha1); tc.PrepareCryptoTransforms(); tc.Authenticate(username, password); tc.OpenChannel(VideoTerminal_Main); }