php - windows7安装laravel homestead后,卡在SSH auth method: private key
本文介绍了php - windows7安装laravel homestead后,卡在SSH auth method: private key的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
系统环境
全新win7 64位旗舰版
管理员身份
virtual box5.1
homestead2.2.1
过程
按照laravel学院的教程安装,当使用homestead up命令启动虚拟机的时候,卡在ssh auth method那里不动了:
$ 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
然后ctrl + c 强制结束,再使用homestad halt关闭虚拟机.出现如下提示:
$ 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...
请问下各位大大,这个问题怎么解决?
解决方案
第一步:检查BIOS 是否开启,是否能支持VirtualBox工作;
第二步:windows默认终端不支持ssh连接,检查是否是终端使用问题;
第三步:检查下Homestead.yaml中的authorize
,keys
配置是否正确;建议重新生成ssh key试一下
这篇关于php - windows7安装laravel homestead后,卡在SSH auth method: private key的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文