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 trialYngve Høiseth
12,473 PointsVagrant SSH: ssh_exchange_identification: read: Connection reset by peer
I'm unable to log in to Vagrant using SSH. When I run vagrant ssh
from inside the Homestead directory, I get the error message ssh_exchange_identification: read: Connection reset by peer
.
There's also a Connection timeout
error when I run vagrant up
. I use Ctrl + C to cancel the vagrant up
command due to these errors. I'm running Ubuntu 14.04 on my computer. Here's the output from my terminal:
y@y-ThinkPad-T420s:~/Homestead$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 80 => 8000 (adapter 1)
default: 3306 => 33060 (adapter 1)
default: 5432 => 54320 (adapter 1)
default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
^C==> default: Waiting for cleanup before exiting...
Vagrant exited after cleanup due to external interrupt.
y@y-ThinkPad-T420s:~/Homestead$ vagrant ssh
ssh_exchange_identification: read: Connection reset by peer
Yngve Høiseth
12,473 PointsYeah. The problem was caused by virtualization being disabled in my computer's BIOS.
Shane McC
3,005 PointsInteresting. I'm curious, how did you go about fixing it?
Yngve Høiseth
12,473 PointsI did the following:
- I restarted my computer.
- Before the operating system started up, I followed the onscreen instructions to enter the BIOS.
- I found the option to enable virtualization under the "Security" section.
- I enabled virtualization.
- I saved and exited BIOS.
- The operating system loaded, and I could now run "vagrant up" without any errors.
I hope this helps.
Shane McC
3,005 PointsHi
Thanks, I followed your instructions but my computer dosen't have the "virtualization" option. Any tips on maybe where it is?
http://tinyurl.com/pypnflc http://scm22ri.smugmug.com/Other/BIOS/44847656_HSqcbM#!i=3597629985&k=mPbFc9b&lb=1&s=A
Yngve Høiseth
12,473 PointsNot all computers have the option to disable virtualization. But you could try performing a web search for "[computer model] virtualization" or "[computer model] virtualization bios".
If your computer doesn't have this option, your problem is probably caused by something else.
Shane McC
3,005 PointsShane McC
3,005 PointsDid you ever figure this out? I'm getting the same error myself