Search code examples
c#sshsharpssh

send key like Ctrl+A in ssh with SharpSsh


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?


Solution

  • its solve by this code

    ssh.Write("\u0003");