首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >点对点重设ssh_exchange_identification读连接- Homestead

点对点重设ssh_exchange_identification读连接- Homestead
EN

Stack Overflow用户
提问于 2014-10-08 01:30:11
回答 2查看 5.8K关注 0票数 5

我正在尝试使用迷走符ssh命令连接到Homestead,但是我得到了下面的错误消息。我正在使用Windows 7,如何解决这个问题?

ssh_exchange_identification通过对等重设读取连接

代码语言:javascript
复制
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.
EN

回答 2

Stack Overflow用户

发布于 2016-11-26 03:34:38

对于其他有此问题的人,请尝试使用虚拟机的gui:

代码语言:javascript
复制
Vagrant.configure(2) do |config|
.... # your other stuff from vagrant here
    config.vm.provider "virtualbox" do |vb|
        vb.gui = true
    end
end

然后,gui转到设备/网络/连接网络适配器并连接它,在我的安装中,默认情况下它会断开连接,并导致ssh和提供的问题。

票数 1
EN

Stack Overflow用户

发布于 2017-08-27 06:14:00

可能是您的IP在多次登录SSH失败后被阻止。打电话给你的主机服务,让他们解除你的IP/删除限制。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26247876

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档