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()