简体   繁体   中英

“vagrant up” ssh times out, but “vagrant ssh” works immediately after

I have this weird problem where "vagrant up" times out:

$ vagrant up
...
default: SSH username: vagrant
default: SSH auth method: private key
Timed out while waiting for the machine to boot.

but "vagrant ssh" works:

$ vagrant ssh
...
vagrant@vagrant-ubuntu-trusty-64:~$

I have tweaked my "config.vm.boot_timeout" to an absurdly high number just to make sure that isn't the issue.

I'm not sure how to debug this. I've read a bunch of articles demonstrating how to get ssh working with vagrant, but if that were my problem then "vagrant ssh" shouldn't work, right? Why does "vagrant up" not work?

我不确定问题出在哪里,但是生成一个新的密钥对已经解决了。

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