How do I ssh into the VM for Minikube?

What is the username/password/keys to ssh into the Minikube VM?


Solution 1:

You can use the Minikube binary for this, minikube ssh.

Solution 2:

Minikube uses boot2docker as its base image, so the default SSH login to the VM ends up being docker:tcuser1.

Solution 3:

I too wanted to login without the Minikube command. I found that it drops the SSH key it generates into ~/.minikube/machines//id_rsa.

My machine was named the default "minikube", and therefore I could do:

ssh -i ~/.minikube/machines/minikube/id_rsa docker@$(minikube ip)

Solution 4:

For windows hyper-v the answer was

  • open "Hyper-V Manager"

  • right click on the "minikube" VM

  • user "root"

There was no password.. that got me in.