gpt4 book ai didi

ssh_exchange_identification 读取对等方重置的连接 - Homestead Laravel

转载 作者:行者123 更新时间:2023-12-02 05:07:58 29 4
gpt4 key购买 nike

我正在尝试使用 vagrant ssh 命令连接到 Homestead,但收到以下错误消息。我使用的是 Windows 7。如何解决此问题?

ssh_exchange_identification 读取对等方重置的连接

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'centos-64-x64-vbox4210'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: rafael_default_1396403974194_51967
==> 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 => 2222 (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
default: Error: Connection timeout. Retrying...
default: Error: Connection timeout. Retrying...
default: Error: Connection timeout. Retrying...
default: Error: Connection timeout. Retrying...
default: Error: Connection timeout. Retrying...
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.

If you look above, you should be able to see the error(s) that
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.

If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.

If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.

最佳答案

对于遇到此问题的其他人,请尝试使用虚拟机的 GUI:

Vagrant.configure(2) do |config|
.... # your other stuff from vagrant here
config.vm.provider "virtualbox" do |vb|
vb.gui = true
end
end

然后使用 gui 进入设备/网络/连接网络适配器并连接它,在我的安装中,它默认断开连接,并导致 ssh 和配置出现问题。

关于ssh_exchange_identification 读取对等方重置的连接 - Homestead Laravel,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26247876/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com