gpt4 book ai didi

vagrant ssh 得到错误 : ssh_exchange_identification: read: Connection reset by peer

转载 作者:行者123 更新时间:2023-12-05 07:24:14 25 4
gpt4 key购买 nike

我正在安装 buildroot。但是当我阅读 buildroot 文档中的手册时,发生了错误。

这是我的流程。

curl -O https://buildroot.org/downloads/Vagrantfile; vagrant up

结果如流。

==> 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...
==> default: Checking if box 'ubuntu/bionic64' 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: vagrant
default: SSH auth method: private key

然后我尝试用ssh连接

vagrant ssh

但有北向显示。就像这样。

lt@ubuntu:~/qemu/buildroot$ vagrant ssh

所以我尝试 ssh 命令。

lt@ubuntu:~/qemu/buildroot$ vagrant ssh-config
Host default
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile /home/lt/.vagrant.d/insecure_private_key
IdentitiesOnly yes
LogLevel FATAL

ssh vagrant@127.0.0.1 -p 2222 i /home/lt/.vagrant.d/insecure_private_key

不过,也向北显示。

你能给我一个建议吗?谢谢。

最佳答案

尝试执行以下命令:

  1. Vagrant 停止
  2. vagrant up
  3. vagrant ssh

这应该可以解决问题。如果它仍然存在,请检查您的 BIOS 设置以确保已启用虚拟化。如果您在 Windows 上,请确保已禁用 hyper-v。

关于vagrant ssh 得到错误 : ssh_exchange_identification: read: Connection reset by peer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55546204/

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