2016-02-18 14 views
13

Używam okna z zagrody i próbuję wejść włóczęgę się w linii poleceń, ale ja dostaję ten błąd:Vagrant: brakuje pliku id_rsa

C:/www/Homestead/scripts/homestead.rb:106:in read': No such file or directory @ rb_sysopen - C:/Users/Niall/.ssh/id_rsa (Errno::ENOENT) from C:/www/Homestead/scripts/homestead.rb:106:in block (2 levels) in configure' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/kernel_v2/config/vm_provisioner.rb:72:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/kernel_v2/config/vm_provisioner.rb:72:in add_config' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/kernel_v2/config/vm.rb:321:in provision' from C:/www/Homestead/scripts/homestead.rb:103:in block in configure' from C:/www/Homestead/scripts/homestead.rb:102:in each' from C:/www/Homestead/scripts/homestead.rb:102:in configure' from C:/www/Homestead/Vagrantfile:20:in block in <top (required)>' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/v2/loader.rb:37:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/v2/loader.rb:37:in load' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:113:in block (2 levels) in load' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:107:in each' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:107:in block in load' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:104:in each' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:104:in load' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/vagrantfile.rb:28:in initialize' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:740:in new' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:740:in vagrantfile' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:486:in host' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:208:in block in action_runner' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:33:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:33:in run' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:473:in hook' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:722:in unload' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/bin/vagrant:177:in ensure in ' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/bin/vagrant:177:in `'

Szukałem w Internecie, ale co mogłem find był ktoś inny zadający to samo pytanie, ale bez odpowiedzi. Co oznacza ten błąd? Poszedłem do folderu w szczególności i rzeczywiście nie ma pliku o nazwie id_rsa. Czy ktoś może rzucić trochę światła na to, jak to naprawić?

Odpowiedz

20

Wygląda na to, że potrzebujesz wygenerować klucz SSH? Możesz to zrobić, wpisując komendę ssh-keygen -t rsa -C "[email protected]" (oczywiście z własnym e-mailem), jeśli używasz Git Bash.

Po wyświetleniu monitu o zapisanie klucza wystarczy nacisnąć Enter. Hasło jest również opcjonalne, po prostu naciśnij dwukrotnie klawisz enter, aby wprowadzić puste hasło.

+2

Lifesaver! To powinno zostać dodane do dokumentacji instalacyjnej dla Laravel. – Radmation

+0

Słodki - nigdy by się tego nie domyślił. –

+0

Przydatna odpowiedź, tks! – rock