From 31238a67ad7cab7f603daa040d9ed8a1bea12891 Mon Sep 17 00:00:00 2001 From: dcorral Date: Thu, 6 Nov 2025 20:39:33 +0100 Subject: [PATCH] Fix port error --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e301581..ecaae6a 100644 --- a/main.go +++ b/main.go @@ -158,7 +158,7 @@ func handleChannel(channel ssh.Channel, requests <-chan *ssh.Request) { } func runCommand(channel ssh.Channel, command string) { - cmd := exec.Command("/bin/bash", "-c", command) + cmd := exec.Command("/bin/sh", "-c", command) cmd.Env = []string{"PATH=/bin"} cmd.Dir = "/" stdin, err := cmd.StdinPipe()