我刚开始与厨师开始,并在私人networking中有几个节点,我需要先进入一个网关节点访问。 目前,我在网关和目的节点上都使用纯密码validation。
CLIENT> $ ssh GATEWAY GATEWAY> $ ssh DESTINATION DESTINATION> $
当运行命令knife bootstrap destination.node --ssh-gateway="gateway.node"其中* .node被主机的完整域replace。 系统提示input密码,但无法访问。
Bootstrapping Chef on destination.node Failed to authenticate %USER% - trying password auth Enter your password: ERROR: Net::SSH::AuthenticationFailed: %USER%
也许我不是很了解刀网关选项的正确用法? 我也尝试提供--ssh-user和--ssh-password选项,但没有运气。
尝试“[email protected]”,它会提示input密码
在厨师的代码非常简短的看,我没有看到一种方式来传递网关密码信息。 我会设置您的主机和网关之间的基于密钥的访问,无论如何,只需要一分钟,并保存打字。