diff --git a/cmd/minikube/cmd/start.go b/cmd/minikube/cmd/start.go index d1e4fbec98f9..c9ce1ca67dbf 100644 --- a/cmd/minikube/cmd/start.go +++ b/cmd/minikube/cmd/start.go @@ -1061,7 +1061,7 @@ func validateNetwork(h *host.Host, r command.Runner) string { } func trySSH(h *host.Host, ip string) { - sshAddr := fmt.Sprintf("%s:22", ip) + sshAddr := net.JoinHostPort(ip, "22") dial := func() (err error) { d := net.Dialer{Timeout: 3 * time.Second}