webconsole: ssh: add keyboard-interactive as an option

For ESXi 6.0

  Authentications that can continue: publickey,keyboard-interactive
This commit is contained in:
Yousong Zhou
2020-10-10 14:36:36 +08:00
parent 225067eb88
commit 88b752b35c
+1 -1
View File
@@ -132,7 +132,7 @@ func (c *SSHtoolSol) GetCommand() *exec.Cmd {
"-oGlobalKnownHostsFile=/dev/null",
"-oUserKnownHostsFile=/dev/null",
"-oStrictHostKeyChecking=no",
"-oPreferredAuthentications=password",
"-oPreferredAuthentications=password,keyboard-interactive",
"-oPubkeyAuthentication=no", // 密码登录时,避免搜寻秘钥登录
"-oNumberOfPasswordPrompts=1",
}