1

I write a simple code with Tamir.SharpSsh to SSH connect :

 SshStream ssh = new SshStream(txt_ip.Text, txt_user.Text, "foo");
 var output = ssh.ReadResponse();

After successfuly connect to client, i want to send some key directly to client, Anyone know how i do that?

Ali
  • 3,373
  • 5
  • 42
  • 54

1 Answers1

1

its solve by this code

ssh.Write("\u0003");
Ali
  • 3,373
  • 5
  • 42
  • 54
  • this code solve the problem ...for example this code send Ctrl+C to Ssh Consol....we can use asscci character to write directly client... – Ali Dec 27 '15 at 10:59