Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAnton Iancu
5,633 PointsIm stuck at vagrant up - i get this:
/Users/anton/Homestead/scripts/homestead.rb:34:in read': No such file or directory - /Users/anton/Homestead/Users/anton/.ssh/id_rsa (Errno::ENOENT)
from /Users/anton/Homestead/scripts/homestead.rb:34:in
block (2 levels) in configure'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/kernel_v2/config/vm_provisioner.rb:72:in call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/kernel_v2/config/vm_provisioner.rb:72:in
add_config'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/kernel_v2/config/vm.rb:285:in provision'
from /Users/anton/Homestead/scripts/homestead.rb:31:in
block in configure'
from /Users/anton/Homestead/scripts/homestead.rb:30:in each'
from /Users/anton/Homestead/scripts/homestead.rb:30:in
configure'
from /Users/anton/Homestead/Vagrantfile:9:in block in <top (required)>'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/v2/loader.rb:37:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/v2/loader.rb:37:in load'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/loader.rb:103:in
block (2 levels) in load'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/loader.rb:97:in each'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/loader.rb:97:in
block in load'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/loader.rb:94:in each'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/loader.rb:94:in
load'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/vagrantfile.rb:28:in initialize'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:614:in
new'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:614:in vagrantfile'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:399:in
host'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:198:in block in action_runner'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/runner.rb:33:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/runner.rb:33:in run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:386:in
hook'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:596:in unload'
from /Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/bin/vagrant:177:in
ensure in <main>'
from /Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/bin/vagrant:177:in `<main>'
Any clues as to how to fix this?
3 Answers
Chris Shaw
26,676 PointsHi Anton,
Your SSH key path is incorrect, it should be the following given you do indeed have a key setup already.
~/.ssh/id_rsa
NOTE: On unix systems the tilda ~
refers to your home directory so you don't need the full path.
Anton Iancu
5,633 PointsThat was indeed the problem! Thank you
Chris Shaw
26,676 PointsNo worries
Matt Borgman
18,313 Pointswhat about for windows users having same issue? tried using full path, also tried shortening the path. have not come across anything to make me feel like im doing anything other than this wrong but still get same output as up above.
Filipe Alferes
4,669 PointsHi Matt.
Did you come up with a solution for this yet? I've been having the same problem for the past day and despite trying the path in many different ways I still do not come up with a solution unfortunately.
I'll update if in the meantime I get somewhere :)
FIXED
Had a simple typo ssh != shh :)
Can confirm ~/.ssh/id-rsa works on Windows.
Filipe