Skip to content

Commit

Permalink
Merge pull request #6237 from tstromberg/ssh-verify
Browse files Browse the repository at this point in the history
Support --force for overriding the ssh check
  • Loading branch information
tstromberg authored Feb 5, 2020
2 parents b5909d8 + 7ebd01e commit 37fb104
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions cmd/minikube/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,10 @@ func validateNetwork(h *host.Host, r command.Runner) string {
}

func trySSH(h *host.Host, ip string) {
if viper.GetBool(force) {
return
}

sshAddr := net.JoinHostPort(ip, "22")

dial := func() (err error) {
Expand All @@ -1132,17 +1136,19 @@ func trySSH(h *host.Host, ip string) {
if err := retry.Expo(dial, time.Second, 13*time.Second); err != nil {
exit.WithCodeT(exit.IO, `minikube is unable to connect to the VM: {{.error}}
This is likely due to one of two reasons:
This is likely due to one of two reasons:
- VPN or firewall interference
- {{.hypervisor}} network configuration issue
- VPN or firewall interference
- {{.hypervisor}} network configuration issue
Suggested workarounds:
Suggested workarounds:
- Disable your local VPN or firewall software
- Configure your local VPN or firewall to allow access to {{.ip}}
- Restart or reinstall {{.hypervisor}}
- Use an alternative --vm-driver`, out.V{"error": err, "hypervisor": h.Driver.DriverName(), "ip": ip})
- Disable your local VPN or firewall software
- Configure your local VPN or firewall to allow access to {{.ip}}
- Restart or reinstall {{.hypervisor}}
- Use an alternative --vm-driver
- Use --force to override this connectivity check
`, out.V{"error": err, "hypervisor": h.Driver.DriverName(), "ip": ip})
}
}

Expand Down

0 comments on commit 37fb104

Please sign in to comment.