登录  /  注册

windows7安装laravel homestead后,卡在SSH auth method: private key

php中文网
发布: 2016-08-29 08:50:51
原创
2060人浏览过

系统环境

  • 全新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...
==&gt; default: Importing base box 'laravel/homestead'...
==&gt; default: Matching MAC address for NAT networking...
==&gt; default: Setting the name of the VM: homestead
==&gt; default: Clearing any previously set network interfaces...
==&gt; default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==&gt; default: Forwarding ports...
    default: 80 (guest) =&gt; 8000 (host) (adapter 1)
    default: 443 (guest) =&gt; 44300 (host) (adapter 1)
    default: 3306 (guest) =&gt; 33060 (host) (adapter 1)
    default: 5432 (guest) =&gt; 54320 (host) (adapter 1)
    default: 22 (guest) =&gt; 2222 (host) (adapter 1)
==&gt; default: Running 'pre-boot' VM customizations...
==&gt; default: Booting VM...
==&gt; 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
==&gt; 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.
==&gt; 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...
==&gt; default: Importing base box 'laravel/homestead'...
==&gt; default: Matching MAC address for NAT networking...
==&gt; default: Setting the name of the VM: homestead
==&gt; default: Clearing any previously set network interfaces...
==&gt; default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==&gt; default: Forwarding ports...
    default: 80 (guest) =&gt; 8000 (host) (adapter 1)
    default: 443 (guest) =&gt; 44300 (host) (adapter 1)
    default: 3306 (guest) =&gt; 33060 (host) (adapter 1)
    default: 5432 (guest) =&gt; 54320 (host) (adapter 1)
    default: 22 (guest) =&gt; 2222 (host) (adapter 1)
==&gt; default: Running 'pre-boot' VM customizations...
==&gt; default: Booting VM...
==&gt; 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
==&gt; 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.
==&gt; default: Forcing shutdown of VM...
</code>
登录后复制
登录后复制

请问下各位大大,这个问题怎么解决?

智能AI问答
PHP中文网智能助手能迅速回答你的编程问题,提供实时的代码和解决方案,帮助你解决各种难题。不仅如此,它还能提供编程资源和学习指导,帮助你快速提升编程技能。无论你是初学者还是专业人士,AI智能助手都能成为你的可靠助手,助力你在编程领域取得更大的成就。
相关标签:
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
关于CSS思维导图的课件在哪? 课件
凡人来自于2024-04-16 10:10:18
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2024 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号