mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
忽略known_hosts记录
This commit is contained in:
@@ -54,9 +54,8 @@ func (c *SSHtoolSol) GetData(data string) (isShow bool, ouput string, command st
|
||||
}
|
||||
c.Username = data
|
||||
return false, "Password:", ""
|
||||
} else {
|
||||
return true, "", fmt.Sprintf("%s -p %s %s %s@%s", o.Options.SshpassToolPath, data, o.Options.SshToolPath, c.Username, c.IP)
|
||||
}
|
||||
return true, "", fmt.Sprintf("%s -p %s %s -oGlobalKnownHostsFile=/dev/null -oUserKnownHostsFile=/dev/null -oStrictHostKeyChecking=no %s@%s", o.Options.SshpassToolPath, data, o.Options.SshToolPath, c.Username, c.IP)
|
||||
}
|
||||
|
||||
func (c *SSHtoolSol) ShowInfo() string {
|
||||
|
||||
Reference in New Issue
Block a user