2016-02-18 8 views
13

लापता मैं रियासत के साथ खिड़कियां उपयोग कर रहा हूँ और मैं कमांड लाइन पर आवारा तक दर्ज करने की कोशिश कर रहा हूँ, लेकिन मैं इस त्रुटि हो रही है:Vagrant: फ़ाइल 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 `'

मैं ऑनलाइन खोज की, लेकिन मैं सभी सका ढूंढें कोई और सवाल पूछ रहा था लेकिन कोई जवाब नहीं था। इस त्रुटि का मतलब क्या है? मैं विशेष रूप से फ़ोल्डर में गया और वास्तव में id_rsa नामक कोई फ़ाइल नहीं है। क्या कोई इसे सुधारने के बारे में कुछ प्रकाश डाल सकता है?

उत्तर

20

ऐसा लगता है कि आपको एक एसएसएच कुंजी उत्पन्न करने की आवश्यकता है? यदि आप गिट बैश का उपयोग कर रहे हैं तो आप कमांड ssh-keygen -t rsa -C "[email protected]" (अपने ईमेल के साथ स्पष्ट रूप से) दर्ज करके ऐसा कर सकते हैं।

जब यह आपको कुंजी को सहेजने के लिए कहता है तो बस एंटर दबाएं। पासफ्रेज भी वैकल्पिक है, बस रिक्त पासफ़्रेज़ के लिए दो बार दर्ज करें।

+2

लाइफसेवर! इसे लैरावेल के लिए इंस्टॉलेशन डॉक्स में जोड़ा जाना चाहिए। – Radmation

+0

स्वीट - कभी यह अनुमान लगाया नहीं होगा। –

+0

उपयोगी उत्तर, tks! – rock

संबंधित मुद्दे