mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-05-06 21:52:54 +08:00
Merge pull request #8224 from yousong/automated-cherry-pick-of-#8222-upstream-release-2.13
Automated cherry pick of #8222: webconsole: ssh: each argument on its own line
This commit is contained in:
@@ -156,8 +156,11 @@ func (c *SSHtoolSol) GetData(data string) (isShow bool, ouput string, command st
|
||||
args := []string{
|
||||
o.Options.SshpassToolPath, "-p", data,
|
||||
o.Options.SshToolPath, "-p", fmt.Sprintf("%d", c.Port), fmt.Sprintf("%s@%s", c.Username, c.IP),
|
||||
"-oGlobalKnownHostsFile=/dev/null", "-oUserKnownHostsFile=/dev/null", "-oStrictHostKeyChecking=no",
|
||||
"-oPreferredAuthentications=password", "-oPubkeyAuthentication=no", //密码登录时,避免搜寻秘钥登录
|
||||
"-oGlobalKnownHostsFile=/dev/null",
|
||||
"-oUserKnownHostsFile=/dev/null",
|
||||
"-oStrictHostKeyChecking=no",
|
||||
"-oPreferredAuthentications=password,keyboard-interactive",
|
||||
"-oPubkeyAuthentication=no", //密码登录时,避免搜寻秘钥登录
|
||||
}
|
||||
return true, "", strings.Join(args, " ")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user