From 5a235b5660ffd2b05d8bb1c5b812f52951fe1311 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Mon, 29 Jul 2019 22:57:39 -0400 Subject: Pass original command to dispatch --- dispatch.c | 2 +- sshd_config | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dispatch.c b/dispatch.c index b3aaf28..137613e 100644 --- a/dispatch.c +++ b/dispatch.c @@ -20,5 +20,5 @@ #include int main(void) { - // TODO: Grab SSH_ORIGINAL_COMMAND, check isatty(3). + // TODO: Validate argv, check isatty(3), exec. } diff --git a/sshd_config b/sshd_config index f7a3ea6..9eb6737 100644 --- a/sshd_config +++ b/sshd_config @@ -4,7 +4,7 @@ Match User stream PasswordAuthentication yes PermitEmptyPasswords yes ChrootDirectory /home/stream - ForceCommand wrapper + ForceCommand dispatch $SSH_ORIGINAL_COMMAND AllowAgentForwarding no AllowTcpForwarding no -- cgit 1.4.1