From 2a920e73611b7f37dd277cf5f0abaa6d5958e6c6 Mon Sep 17 00:00:00 2001 From: aiju Date: Fri, 28 Apr 2017 15:41:39 +0000 Subject: [PATCH] ssh: add support for subsystems --- sys/src/cmd/ssh.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/src/cmd/ssh.c b/sys/src/cmd/ssh.c index a7f45da11..100b0c57e 100644 --- a/sys/src/cmd/ssh.c +++ b/sys/src/cmd/ssh.c @@ -1286,6 +1286,12 @@ Next1: switch(recvpkt()){ 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,