diff options
Diffstat (limited to 'internal/sshd/session.go')
-rw-r--r-- | internal/sshd/session.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/sshd/session.go b/internal/sshd/session.go index 1d9ae42..48cd86a 100644 --- a/internal/sshd/session.go +++ b/internal/sshd/session.go @@ -66,8 +66,12 @@ func (s *session) handle(ctx context.Context, requests <-chan *ssh.Request) erro case "env": shouldContinue, err = s.handleEnv(ctx, req) case "exec": + // The command has been executed as `ssh user@host command` or `exec` channel has been used + // in the app implementation shouldContinue, err = s.handleExec(ctx, req) case "shell": + // The command has been entered into the shell or `shell` channel has been used + // in the app implementation shouldContinue = false var status uint32 status, err = s.handleShell(ctx, req) |