我正在使用带有 homestead 的 Windows,并且尝试在命令行上输入 vagrant up 但出现此错误:
C:/www/Homestead/scripts/homestead.rb:106:inread': No such file or directory @ rb_sysopen - C:/Users/Niall/.ssh/id_rsa (Errno::ENOENT)
from C:/www/Homestead/scripts/homestead.rb:106:in
配置中的块(2 级)'
来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/kernel_v2/config/vm_provisioner.rb:72:incall'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/kernel_v2/config/vm_provisioner.rb:72:in
添加配置'
来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/kernel_v2/config/vm.rb:321:inprovision'
from C:/www/Homestead/scripts/homestead.rb:103:in
配置中的块'
来自 C:/www/Homestead/scripts/homestead.rb:102:ineach'
from C:/www/Homestead/scripts/homestead.rb:102:in
配置'
来自 C:/www/Homestead/Vagrantfile:20:inblock in <top (required)>'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/v2/loader.rb:37:in
称呼'
来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/v2/loader.rb:37:inload'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:113:in
负载中的块(2 级)
来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:107:ineach'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:107:in
负载中的块'
来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:104:ineach'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:104:in
加载'
来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/vagrantfile.rb:28:ininitialize'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:740:in
新的'
来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:740:invagrantfile'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:486:in
主持人'
来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:208:inblock in action_runner'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:33:in
称呼'
来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:33:inrun'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:473:in
钩'
来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:722:inunload'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/bin/vagrant:177:in
确保在'
来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/bin/vagrant:177:in `'
我在网上搜索,但我能找到的只是其他人问同样的问题,但没有答案。这个错误是什么意思?我特别去了该文件夹,确实没有名为 id_rsa.txt 的文件。任何人都可以阐明如何纠正这个问题吗?
看起来您需要生成 SSH 密钥?您可以通过输入命令来做到这一点ssh-keygen -t rsa -C "[email protected] /cdn-cgi/l/email-protection"
(显然是用你自己的电子邮件)如果你使用 Git Bash。
当它提示您保存密钥的位置时,只需按 Enter 键即可。密码也是可选的,只需按两次 Enter 键即可获得空白密码。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)