Merge pull request #6237 from tstromberg/ssh-verify
Support --force for overriding the ssh checkpull/6492/head^2
commit
37fb10415b
|
@ -1116,6 +1116,10 @@ func validateNetwork(h *host.Host, r command.Runner) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func trySSH(h *host.Host, ip string) {
|
func trySSH(h *host.Host, ip string) {
|
||||||
|
if viper.GetBool(force) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
sshAddr := net.JoinHostPort(ip, "22")
|
sshAddr := net.JoinHostPort(ip, "22")
|
||||||
|
|
||||||
dial := func() (err error) {
|
dial := func() (err error) {
|
||||||
|
@ -1142,7 +1146,9 @@ Suggested workarounds:
|
||||||
- Disable your local VPN or firewall software
|
- Disable your local VPN or firewall software
|
||||||
- Configure your local VPN or firewall to allow access to {{.ip}}
|
- Configure your local VPN or firewall to allow access to {{.ip}}
|
||||||
- Restart or reinstall {{.hypervisor}}
|
- Restart or reinstall {{.hypervisor}}
|
||||||
- Use an alternative --vm-driver`, out.V{"error": err, "hypervisor": h.Driver.DriverName(), "ip": ip})
|
- Use an alternative --vm-driver
|
||||||
|
- Use --force to override this connectivity check
|
||||||
|
`, out.V{"error": err, "hypervisor": h.Driver.DriverName(), "ip": ip})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue