How to transfer files between local machine and minikube?

后端 未结 5 1229
臣服心动
臣服心动 2021-01-30 11:14

I am using OS Ubuntu 16.0.4 and i installed minikube on it. I need to copy some files to minikube, so how can i do that? I tried next command but it asked me on password and i d

5条回答
  •  庸人自扰
    2021-01-30 11:58

    if you have installed minikube Windows Host then you can find the ssh public & private keys for docker user (docker user is in the minikube vm) in

    C:\Users\{yourusername}\.minikube\machines\minikube
    

    on Windows Host.

    The files are copied by minikube.exe during vm creation.

    The files are id_rsa & id_rsa.pub.

    Then open the id_rsa in puttygen and save the private key in .ppk format.

    After that you can use the newly saved private key with Winscp.

    Host name: ip-address of you minikube vm { can get it with c:\minikube ip }

    username: docker

    port : 22

    Go to Advanced ---> Advanced ----> SSH ----> Authentication ---->private key file

    Then open...

提交回复
热议问题