Home > Backend Development > PHP Tutorial > After installing laravel homestead in windows7, I got stuck on SSH auth method: private key

After installing laravel homestead in windows7, I got stuck on SSH auth method: private key

WBOY
Release: 2016-08-29 08:50:51
Original
2242 people have browsed it

System environment

  • New win7 64-bit ultimate version

  • Administrator status

  • virtual box5.1

  • homestead2.2.1

Process

Follow the tutorial of laravel academy to install. When using the homestead up command to start the virtual machine, it gets stuck at the ssh auth method:

<code class="bash">$ homestead up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'laravel/homestead'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: homestead
==> 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 (guest) => 8000 (host) (adapter 1)
    default: 443 (guest) => 44300 (host) (adapter 1)
    default: 3306 (guest) => 33060 (host) (adapter 1)
    default: 5432 (guest) => 54320 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (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</code>
Copy after login
Copy after login

Then ctrl + c to force the end, and then use homestad halt to shut down the virtual machine. The following prompt appears:

<code class="bash">$ homestead halt
==> default: Attempting graceful shutdown of VM...
    default: Guest communication could not be established! This is usually because
    default: SSH is not running, the authentication information was changed,
    default: or some other networking issue. Vagrant will force halt, if
    default: capable.
==> default: Forcing shutdown of VM...
</code>
Copy after login
Copy after login

Excuse me, everyone, how to solve this problem?

Reply content:

System environment

  • New win7 64-bit ultimate version

  • Administrator status

  • virtual box5.1

  • homestead2.2.1

Process

Follow the tutorial of laravel academy to install. When using the homestead up command to start the virtual machine, it gets stuck at the ssh auth method:

<code class="bash">$ homestead up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'laravel/homestead'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: homestead
==> 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 (guest) => 8000 (host) (adapter 1)
    default: 443 (guest) => 44300 (host) (adapter 1)
    default: 3306 (guest) => 33060 (host) (adapter 1)
    default: 5432 (guest) => 54320 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (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</code>
Copy after login
Copy after login

Then ctrl + c to force the end, and then use homestad halt to shut down the virtual machine. The following prompt appears:

<code class="bash">$ homestead halt
==> default: Attempting graceful shutdown of VM...
    default: Guest communication could not be established! This is usually because
    default: SSH is not running, the authentication information was changed,
    default: or some other networking issue. Vagrant will force halt, if
    default: capable.
==> default: Forcing shutdown of VM...
</code>
Copy after login
Copy after login

Excuse me, everyone, how to solve this problem?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template