Sembra che non possa SSH nella mia casella virtuale.Windows Vagrant - ssh_exchange_identification: leggi: Connessione ripristinata dal peer
Ho una casella virtuale in esecuzione con Win7. Il PC host è anche in Win7. La casella virtuale è stata creata tramite Vagrant con il seguente Vagrantfile.
Vagrant.configure("2") do |config|
config.vm.box = "http://aka.ms/vagrant-win7-ie11"
end
Aperto cmd. Vai alla cartella principale di VagrantFile. Eseguire il comando:
vagrant up
display cmd:
Bringing machine 'default' up with 'virtualbox' provider...
==> 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 (guest) => 2222 (host) (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
Timed out while waiting for the machine to boot...
Timeout appare se la casella virtuale ha già finito al taglio. (Controllo tramite VirtualBox Manager)
Eseguire il comando:
vagrant ssh
display cmd:
ssh_exchange_identification: read: Connection reset by peer
Mentre debug ssh vagrant, forse ho trovato alcuni ceppi utili:
INFO subprocess: Starting process: ["C:\\Program Files\\Git\\usr\\bin/ssh.EXE"]
INFO ssh: Invoking SSH: ss ["[email protected]", "-p", "2222", "-o", "Compression=yes", "-o", "DSAAuthentication=yes", "-o", "LogLevel=FATAL", "-o", "StrictHostKeyChecking=no", "-o", "UserKnownHostsFile=/dev/null", "-o", "IdentitiesOnly=yes", "-i", "C:/Users/hostpcname/.vagrant.d/insecure_private_key"]
Potete suggerire alcuni modi su come uscire da questo? Ho provato l'immagine non Windows - hashicorp/precise64, e ha funzionato bene.
stesso errore. Hai trovato una soluzione? – egor7