2014-10-08 23 views
5

Sto provando a connettermi a Homestead usando il comando sragarant ma sto ricevendo il seguente messaggio di errore. Sto usando Windows 7. Come posso risolvere questo problema?ssh_exchange_identification read reset reset by peer - Homestead Laravel

ssh_exchange_identification leggere ripristinato il collegamento dal pari

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

Si prega di pubblicare i registri da client ssh e lato server? –

risposta

1

Per tutti gli altri con questo problema provare a utilizzare l'interfaccia grafica della macchina virtuale:

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

E poi con la GUI andare a Devices/Network/Connect Network Adapter e collegarlo, nella mia installazione viene disconnesso per impostazione predefinita e causa i problemi con ssh e la fornitura.

+0

Puoi spiegare dove inserire questo codice? E non c'è un modo per farlo dal terminale? (Posso arrivarci con VirtualBox) – Niels

+1

@Niels Ciao, buona giornata :). Questo codice va nel _Vagrantfile_ che viene generato dopo aver usato il comando: ** $ php vendor/bin/homestead make **. Non sono sicuro se è possibile farlo dalla console, ho fatto qualcosa di simile con i comandi di VBoxManage https://www.virtualbox.org/manual/ch08.html puoi guardare da lì. Il problema di base qui è che la macchina vagabonda della fattoria è stata mal costruita, e penso che forse dovrebbe essere un bug segnalato. Mi dispiace, mi ci è voluto tanto tempo per rispondere Grazie per il tuo tempo :). – civilian

0

Potrebbe essere che il tuo IP è stato bloccato dopo più tentativi falliti di accedere a SSH. Chiama il tuo servizio di hosting e fai in modo che sblocchi il tuo IP/rimuovi le restrizioni.