ref: 2a920e73611b7f37dd277cf5f0abaa6d5958e6c6
parent: 522f08e5f1a4f16a2cb2016c7b03f86b1eadea30
author: aiju <devnull@localhost>
date: Fri Apr 28 11:41:39 EDT 2017
ssh: add support for subsystems
--- a/sys/src/cmd/ssh.c
+++ b/sys/src/cmd/ssh.c
@@ -1286,6 +1286,12 @@
send.chan,
"shell", 5,
0);
+ } else if(*cmd == '#') {
+ sendpkt("busbs", MSG_CHANNEL_REQUEST,
+ send.chan,
+ "subsystem", 9,
+ 0,
+ cmd+1, strlen(cmd)-1);
} else {
sendpkt("busbs", MSG_CHANNEL_REQUEST,
send.chan,