首頁  >  文章  >  後端開發  >  windows7安裝laravel homestead後,卡在SSH auth method: private key

windows7安裝laravel homestead後,卡在SSH auth method: private key

WBOY
WBOY原創
2016-08-29 08:50:512229瀏覽

系統環境

  • 全新win7 64位旗艦版

  • 管理員身分

  • virtual box5.1

  • homestead2.2.1

過程

按照laravel學院的教程安裝,當使用homestead up命令啟動虛擬機的時候,卡在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>

然後ctrl + c 強制結束,再使用homestad halt關閉虛擬機器.出現如下提示:

<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>

請問下各位大大,這個問題怎麼解決?

回覆內容:

系統環境

  • 全新win7 64位旗艦版

  • 管理員身分

  • virtual box5.1

  • homestead2.2.1

過程

按照laravel學院的教程安裝,當使用homestead up命令啟動虛擬機的時候,卡在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>

然後ctrl + c 強制結束,再使用homestad halt關閉虛擬機器.出現如下提示:

<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>

請問下各位大大,這個問題怎麼解決?

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn