Jean Pierre Waked
Jean Pierre Waked

Reputation: 123

Escape sequence for SSH keystroke

I want to send an ssh command using

 SshCommand x = cSSH.RunCommand("ssh command");    

The command I want to send is "Control C". should I declare it or I can send it directly ? Can you please provide me with the shh command format of it.

Upvotes: 1

Views: 311

Answers (1)

Ekk
Ekk

Reputation: 5715

You can use \x03 to pass CTRL-C to the server. Read more on ASCII Table.

Upvotes: 2

Related Questions