【问题标题】:Laravel Homestead ssh errorLaravel Homestead ssh 错误
【发布时间】:2017-03-28 19:54:11
【问题描述】:

当我想设置 Laravel Homestead 并将 vagrant 添加到 Homestead This

Error occurred:
Homestead/scripts/homestead.rb:118:in`read': No such file or directory @ rb_sysopen - C:/Users/Hanie/.ssh/id_rsa (Errno::ENOENT)
from C:/Windows/Homestead/scripts/homestead.rb:118:in`block (2 levels) in configure'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/plugins/kernel_v2/config/vm_provisioner.rb:72:in `call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/plugins/kernel_v2/config/vm_provisioner.rb:72:in `add_config'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/plugins/kernel_v2/config/vm.rb:336:in `provision'
from C:/Windows/Homestead/scripts/homestead.rb:115:in `block in configure'
from C:/Windows/Homestead/scripts/homestead.rb:114:in `each'
from C:/Windows/Homestead/scripts/homestead.rb:114:in `configure'
from C:/Windows/Homestead/Vagrantfile:35:in `block in <top (required)>'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/config/v2/loader.rb:37:in `call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/config/v2/loader.rb:37:in `load'                            from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/config/loader.rb:113:in `block (2 levels) in load'
 from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/config/loader.rb:107:in `each'                             from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/config/loader.rb:107:in `block in load'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/config/loader.rb:104:in `each'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/config/loader.rb:104:in `load'
 from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/vagrantfile.rb:28:in `initialize'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/environment.rb:746:in `new'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/environment.rb:746:in `vagrantfile'
 from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/environment.rb:492:in `host'
 from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/environment.rb:214:in `block in action_runner'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/action/runner.rb:33:in `call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/action/runner.rb:33:in `run'
 from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/environment.rb:479:in `hook'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/environment.rb:728:in `unload'
 from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/bin/vagrant:130:in `ensure in <main>'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.2/bin/vagrant:130:in `<main>'

我的 Homestead.yaml 在这里: 怎么了?

【问题讨论】:

  • 您在 C:/Users/Hanie/.ssh 中真的有 ssh 密钥吗? C:\laravel 项目也应该是 C:/laravel-projects 或 ~/laravel-projects 我在我的 yaml 文件中使用 ~

标签: php laravel


【解决方案1】:

1.安装 git。 2. 打开你的主目录。 3 鼠标右键“Git bash here” 4.ssh-keygen

来自: homestead.rb:109:in `read': No such file or directory @ rb_sysopen

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-02-22
    • 2016-06-14
    • 1970-01-01
    • 2015-07-10
    • 2016-04-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多