How do I ssh into the VM for Minikube?

前端 未结 8 2057
予麋鹿
予麋鹿 2021-01-29 23:03

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

相关标签:
8条回答
  • 2021-01-29 23:10

    docker/tcuser is the username/password to access to it , and it's also an straight way.

    if you just want to master the control platform, then minikube ssh is a quick way to login.

    0 讨论(0)
  • 2021-01-29 23:11

    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)
    
    0 讨论(0)
  • 2021-01-29 23:14

    Getting user and password for minikube in Mac.

    cat ~/.minikube/machines/minikube/config.json

    Loggin on SSH

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

    0 讨论(0)
  • 2021-01-29 23:17

    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.

    0 讨论(0)
  • 2021-01-29 23:21
    minikube ssh -v 7
    

    It will show you the output where you can see the full SSH command

    /usr/bin/ssh -F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none docker@127.0.0.1 -o IdentitiesOnly=yes -i ~/.minikube/machines/minikube/id_rsa -p 56290
    
    0 讨论(0)
  • 2021-01-29 23:24

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

    0 讨论(0)
提交回复
热议问题