Question

I need to send special keys to a remote terminal, how can I do that with JSCH?

Thanks,

Walter

Was it helpful?

Solution 2

I switched to sshj and use the signal enumeration to send signals, if needed.

Walter

OTHER TIPS

Try sending two bytes: 0x03, 0x04.

Check ASCII table for more.

You can send a signal like this:

channel.sendSignal("2"); // sends (CTRL+C) signal
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top