2014-10-08 20 views
5

Próbuję połączyć się z Homestead za pomocą polecenia ssh vagrant, ale otrzymuję komunikat o błędzie poniżej. Używam systemu Windows 7. Jak rozwiązać ten problem?ssh_exchange_identification odczytaj reset połączenia przez peer - Homestead Laravel

ssh_exchange_identification czytać Połączenie zresetowane przez element równorzędny

Bringing machine 'default' up with 'virtualbox' provider... 
==> default: Importing base box 'centos-64-x64-vbox4210'... 
==> default: Matching MAC address for NAT networking... 
==> default: Setting the name of the VM: rafael_default_1396403974194_51967 
==> 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: Forwarding ports... 
default: 22 => 2222 (adapter 1) 
==> 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: Error: Connection timeout. Retrying... 
default: Error: Connection timeout. Retrying... 
default: Error: Connection timeout. Retrying... 
default: Error: Connection timeout. Retrying... 
default: Error: Connection timeout. Retrying... 
Timed out while waiting for the machine to boot. This means that 
Vagrant was unable to communicate with the guest machine within 
the configured ("config.vm.boot_timeout" value) time period. 

If you look above, you should be able to see the error(s) that 
Vagrant had when attempting to connect to the machine. These errors 
are usually good hints as to what may be wrong. 

If you're using a custom box, make sure that networking is properly 
working and you're able to connect to the machine. It is a common 
problem that networking isn't setup properly in these boxes. 
Verify that authentication configurations are also setup properly, 
as well. 

If the box appears to be booting properly, you may want to increase 
the timeout ("config.vm.boot_timeout") value. 
+0

Czy mógłbyś wysyłać logi ze strony klienta i serwera ssh? –

Odpowiedz

1

Dla wszystkich innych z tego problemu spróbuj użyć GUI w maszynie wirtualnej:

Vagrant.configure(2) do |config| 
.... # your other stuff from vagrant here 
    config.vm.provider "virtualbox" do |vb| 
     vb.gui = true 
    end 
end 

a następnie z gui iść do Devices/Network/Connect Network Adapter i podłącz go, w mojej instalacji jest domyślnie odłączony i powoduje problemy z ssh i zapisem.

+0

Czy możesz wyjaśnić, gdzie umieścić ten kod? I nie ma sposobu, aby to zrobić z terminalu? (Mogę się tam dostać dzięki VirtualBox) – Niels

+1

@Niels Witaj, życzę miłego dnia :). Ten kod znajduje się w pliku _Vagrantfile, który jest generowany po użyciu polecenia: ** $ php vendor/bin/homestead make **. Nie jestem pewien, czy można to zrobić z konsoli, zrobiłem coś podobnego za pomocą poleceń VBoxManage https://www.virtualbox.org/manual/ch08.html, z którego można się teraz dowiedzieć. Podstawowy problem polega na tym, że maszyna agrendalna została źle zbudowana i wydaje mi się, że może to być zgłoszony błąd. Przepraszam, że zajęło mi tyle czasu, aby odpowiedzieć Dzięki za poświęcony czas :). – civilian

0

Możliwe, że twoje IP zostało zablokowane po wielu nieudanych próbach zalogowania się do SSH. Zadzwoń do swojego serwisu hostingowego i poproś o odblokowanie swoich ograniczeń dotyczących adresu IP/usunięcia.