【发布时间】:2015-11-05 22:55:01
【问题描述】:
我已经为 libvirt 创建了我的自定义框,并为 vagrant 生成了 ssh-key 对,而无需 pass-phrase 。我在 vagrant 文件中提供私钥,例如
config.ssh.username = "username"
config.ssh.private_key_path = "/path_to_key/id_rsa"
运行vagrant up VM --provider=libvirt 后,它运行良好,没有任何问题。
下次我再次使用密码创建新的 Box 和 ssh-key,我正在运行命令 vagrant up with_pass --provider=libvirt,但它不起作用并且不要求输入密码。它停在
==> with_pass: -- Video Type: cirrus
==> with_pass: -- Video VRAM: 9216
==> with_pass: -- Keymap: en-us
==> with_pass: -- Command line :
==> with_pass: Creating shared folders metadata...
==> with_pass: Starting domain.
==> with_pass: Waiting for domain to get an IP address...
==> with_pass: Waiting for SSH to become available..
我知道它需要密码,但我不知道如何提供密码。
【问题讨论】:
标签: linux ssh vagrant ssh-keys vagrantfile