【发布时间】:2019-04-06 05:32:06
【问题描述】:
我正在安装 buildroot。但是当我从 buildroot doc 阅读手册时,发生了错误。
这是我的过程。
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
不过,也北向显示。
你能给我打个招呼吗?谢谢。
【问题讨论】: