【发布时间】:2017-03-09 21:19:46
【问题描述】:
我正在尝试通过 Chef 引导节点 Bento/centos 7.2,但遇到了 SSH 错误。
我已经安装了 virtualbox 和 vagrant。使用 Chef DK 内置的 ssh 客户端,我可以毫无问题地 ssh 进入 vm。我使用托管厨师作为我的服务器。
在我的 Win 10 工作站上,我发出以下命令并收到错误消息。
PS C:\Users\Topher\Documents\Learn Chef\.chef> knife bootstrap 10.0.2.15 --ssh-user vagrant --sudo --ssh-identity-file C:\Users\
Topher\.vagrant\machines\default\virtualbox\private_key --node-name localhost --run-list 'recipe[learn_chef_httpd]'
Node localhost exists, overwrite it? (Y/N) Y
Client localhost exists, overwrite it? (Y/N) Y
Creating new client for localhost
Creating new node for localhost
Connecting to 10.0.2.15
ERROR: Net::SSH::ConnectionTimeout: Net::SSH::ConnectionTimeout
任何想法是什么导致了 ConnectionTimeout?
【问题讨论】:
-
不用刀可以ssh到节点吗?例如
vagrant --debug ssh? -
我觉得我们在正确的轨道上......我跑了...... PS C:\Users\Topher> vagrant --debug ssh ...这将大量输出转储到外壳。输出多次表明这一点... INFO interface: error:
sshexecutable not found in any directory in the %PATH% variable.是否安装了 SSH 客户端?尝试安装 Cygwin、MinGW 或 Git,它们都包含 SSH 客户端。 // INFO 接口: Machine: error-exit ["Vagrant::Errors::SSHUnavailableWindows" // 我可以通过 chef dk 客户端以及 git 客户端通过 ssh 连接。
标签: ssh chef-infra knife