流浪的SSH问题

时间:2017-07-16 17:54:23

标签: windows ssh vagrant virtualbox

当我跑“流浪汉”时,它会超时:

C:\Users\Natalie\remnux>vagrant up

Bringing machine 'default' up with 'virtualbox' provider...

==> default: Checking if box 'bhaskarvk/remnux' is up to date...

==> 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 (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: remnux

    default: SSH auth method: password

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.

如果你看一下,你应该能够看到错误 Vagrant在尝试连接机器时有过。这些错误 对于可能出现的问题通常是很好的暗示。

如果您使用的是自定义框,请确保网络正常 工作,你可以连接到机器。这很常见 在这些框中未正确设置网络的问题。 验证身份验证配置是否也已正确设置, 同样。

如果该框似乎正在正常启动,您可能需要增加 超时(“config.vm.boot_timeout”)值。

此后,返回一个vagrant status命令,显示vagrant正在运行。然而,当我尝试流浪汉ssh时,它会回来:

C:\Users\Natalie\remnux>vagrant ssh

==> default: The machine you're attempting to SSH into is configured to use

==> default: password-based authentication. Vagrant can't script entering the

==> default: password for you. If you're prompted for a password, please enter

==> default: the same password you have configured in the Vagrantfile.

ssh_exchange_identification: read: Connection reset by peer

最后一件事,我的教授提到,当我运行命令vagrant ssh-config时,我可能没有identityFile这个问题:

C:\ Users \ Natalie \ remnux> vagrant ssh-config

Host default
  HostName 127.0.0.1

  User remnux

  Port 2222

  UserKnownHostsFile /dev/null

  StrictHostKeyChecking no

  PasswordAuthentication no

  IdentitiesOnly yes

  LogLevel FATAL

我试过让我的教授解决这个问题但仍然遇到了问题。我在Intel(R)Core(TM)i3-6100U CPU @ 2.30GHz 2.30GHz处理器上运行Windows 10 Education。

我试图通过添加到vagrantfile来进行故障排除,但这似乎也不起作用(不确定我是否正确)。

这是我第一次在这里发布问题所以我不确定需要多少信息,但我愿意尝试解决问题所需要做的任何事情。我想我的主要问题是,我不知道问题的根源究竟是什么,或者是否存在许多错误。

0 个答案:

没有答案