简体   繁体   中英

can't access Vagrant using ssh

I'm using Vagrant to work, and i need to share my box with my co workers who travel. So, i packaged this box with Vagrant command vagrant package and got a file .box.

So, in another PC, i added the box to vagrant with vagrant box add my-box.box serv-dev and run vagrant up .

In process to mount vagrant a problem occur when it's time to access to the Vagrant machine: generally three connection timeout and after, it's Authentication Failure.

Therefore, i ran ssh-keygen and obtained a key. So, i added this one in .ssh/authorized_keys but it still doesn't work...

I don't know what to do anymore.

最后,我在〜/ .vagrant.d / insecure_private_key中更改了私钥,它运行了!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM