From 619a0ee700c905ecc70c795d1198665d1b09bac1 Mon Sep 17 00:00:00 2001 From: knqyf263 Date: Fri, 3 Mar 2017 11:20:57 +0900 Subject: [PATCH] Change ssh option from -t to -tt --- scan/executil.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scan/executil.go b/scan/executil.go index 46736436..48b89f01 100644 --- a/scan/executil.go +++ b/scan/executil.go @@ -258,7 +258,7 @@ func sshExecExternal(c conf.ServerInfo, cmd string, sudo bool) (result execResul } defaultSSHArgs := []string{ - "-t", + "-tt", "-o", "StrictHostKeyChecking=no", "-o", "UserKnownHostsFile=/dev/null", "-o", "LogLevel=quiet", @@ -285,7 +285,7 @@ func sshExecExternal(c conf.ServerInfo, cmd string, sudo bool) (result execResul } cmd = decorateCmd(c, cmd, sudo) - // cmd = fmt.Sprintf("stty cols 256; set -o pipefail; %s", cmd) + cmd = fmt.Sprintf("stty cols 1000; %s", cmd) args = append(args, cmd) execCmd := ex.Command(sshBinaryPath, args...)