SSH Hostkey check (#417)

* Add Hostkey check as default behavior when SSH
This commit is contained in:
Kota Kanbe
2017-04-06 18:08:55 +09:00
committed by Teppei Fukuda
parent 703c142659
commit e20a59b991
3 changed files with 30 additions and 17 deletions

View File

@@ -259,8 +259,7 @@ func sshExecExternal(c conf.ServerInfo, cmd string, sudo bool) (result execResul
defaultSSHArgs := []string{
"-tt",
"-o", "StrictHostKeyChecking=no",
"-o", "UserKnownHostsFile=/dev/null",
"-o", "StrictHostKeyChecking=yes",
"-o", "LogLevel=quiet",
"-o", "ConnectionAttempts=3",
"-o", "ConnectTimeout=10",