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 trial
Brian van Vlymen
12,637 Pointsgetting with SSH for Windows failed "vagrant ssh"
after i typed vagrant up and VirtualBox VM is already running. and then I am trying to get vagrant ssh it said connection reset by peer. What does it mean?
related to C:\Users\Brian\Homestead
Homestead.yaml
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: c:/Users/brian/.ssh/id_rsa.pub
keys:
- c:/Users/brian/.ssh/id_rsa
folders:
- map: c:/Users/brian/homestead/projects
to: /home/vagrant/Sites
sites:
- map: laravel.dev
to: /home/vagrant/Sites/fresh2/public
variables:
- key: APP_ENV
value: local
on my cmd (command)
C:\Users\Brian\Homestead>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: VirtualBox VM is already running.
C:\Users\Brian\Homestead>vagrant ssh
ssh_exchange_identification: read: Connection reset by peer
Please let me know if you need more from other files.
2 Answers
Chris Shaw
26,676 PointsHi Brian,
I wrote a detailed reply to another user about getting SSH working with vagrant on Windows using Git as I find it's git executable to be more reliable.
https://teamtreehouse.com/forum/getting-ssh-for-windows-os
I've done this on my PC after having a smooth experience on my MacBook Pro and it worked flawlessly.
Brian van Vlymen
12,637 PointsI am having same situation problem. I tried the GitHub method, using git and command terminal both method.
ssh-agent -s
but when I ran this below command ssh-add C:/users/brian/.ssh/id_rsa
it gave me "could not open connection to your authentication agent" I guess this is my problem right here.
I am thinking about other method I found an article http://aryannava.com/2014/04/05/installing-vagrant-on-windows-7-and-8/ using PUTTY.
Chris Shaw
26,676 PointsBrain, have you had a chance to read my reply in the other thread which I linked above? The method I explain works flawlessly and doesn't require the need for PuTTY and accommodates for software other than vagrant.