我试图在Ubuntu18.04上使用kvm启动Kubernetes minikube (v0.32.0)
但是,它在运行时挂起:minikube start --vm-driver kvm2 -v 10或minikube ssh -v 10
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain。
我可以用"ssh docker@192.168.39.98“连接到minikube,所以我认为minikube ssh不能工作,因为它不使用相同的参数。我如何配置它来完成它呢?
"AuthOptions":{ "CertDir":“/home/獾/..minikube”,"CaCertPath":“/home/badgers/..minikube/certs/ca.pem”,"CaPrivateKeyPath":“/home/badgers/..minikube/certs/ca-key.pem”,"CaCertRemotePath":“CaCertRemotePath”,"ServerCertPath":“"/home/badgers/.minikube/machines/server-key.pem",”:"ServerKeyPath":"ClientKeyPath":“/home/badgers/..minikube/certs/key.pem”,"ServerCertRemotePath":“ServerCertRemotePath”,"ServerKeyRemotePath":"ClientCertPath":“/home/獾/..minikube/certs/certs/cert.pem”,"ServerCertSANs":null,"StorePath":“/home/badgers/..minikube”
发布于 2018-12-26 20:10:31
你的VM真的开始了吗?您运行的是裸金属还是嵌套虚拟化?通常,连接到VM的ssh私钥将位于:
/home/badgers/.minikube/machines/minikube/id_rsa您可以通过以下方式检查:
$ minikube ssh-key配置中的SSHKeyPath选项也标识了这一点:
{
"ConfigVersion": 3,
"Driver": {
"IPAddress": "192.168.x.x",
"MachineName": "minikube",
"SSHUser": "docker",
"SSHPort": 22,
"SSHKeyPath": "/home/badgers/.minikube/machines/minikube/id_rsa",
...
}https://stackoverflow.com/questions/53935569
复制相似问题