CoreOS Vagrant虚拟盒SSH密码 [英] CoreOS Vagrant Virtual box SSH password
问题描述
我正在尝试使用Putty通过SSH进入 CoreOS虚拟盒子.我知道用户名"Vagrant"时,用户名会出现在输出中,但我不知道密码是什么.
I'm trying to SSH into CoreOS Virtual Box using Putty. I know the username appears in the output when I do Vagrant up but I don't know what the password is.
我也尝试过使用Vagrantfile中的config.ssh.password
设置覆盖它,但是当我再次执行vagrant up
时,它会出现身份验证失败警告并不断重试.
I've also tried overriding it with config.ssh.password
settings in Vagrantfile but when I do vagrant up
again it comes up with Authentication failure warning and retries endlessly.
我们如何使用Putty登录此Box实例?
How do we use Putty to log into this Box instance?
推荐答案
默认情况下,没有为核心用户设置密码,仅基于密钥的身份验证.如果您想设置密码,可以通过以下方式通过cloud-config .
By default there is no password set for the core user, only key-based authentication. If you'd like to set a password this can be done via cloud-config.
将cloud-config文件放置在克隆的存储库内的用户数据文件中.查看user-data.sample作为示例.
Place the cloud-config file in a user-data file within the cloned repository. View user-data.sample for an example.
更好的方法是遵循本指南,以便您可以使用vagrant ssh
按照设计.
A better method would be to follow this guide so that you can use vagrant ssh
as it was designed.
这篇关于CoreOS Vagrant虚拟盒SSH密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!