【发布时间】:2015-04-24 15:15:58
【问题描述】:
我在公司网络中有一个 jenkins 服务器。需要使用 jenkins ec2 插件来旋转 EC2 实例。我的印象是,在提供访问权限、密钥和 AMI Id 之后,为 ssh 端口 22(它的一个 linux 映像)打开了安全组。我将能够将 ec2 实例连接为从站。但它抛出错误。
Connecting to 172.30.0.204 on port 22, with timeout 10000.
Waiting for SSH to come up. Sleeping 5.
Connecting to 172.30.0.204 on port 22, with timeout 10000.
Waiting for SSH to come up. Sleeping 5.
Connecting to 172.30.0.204 on port 22, with timeout 10000.
Waiting for SSH to come up. Sleeping 5.
Connecting to 172.30.0.204 on port 22, with timeout 10000.
Waiting for SSH to come up. Sleeping 5.
Connecting to 172.30.0.204 on port 22, with timeout 10000
.
我可以使用本地机器上的公共 ip 连接 ec2 实例。我所看到的只是詹金斯试图使用私有 IP 进行访问。自从它在 vpc 中以来,我已经给出了一个子网 ID。 jenkins 或 VPC 中的任何设置需要更改吗?
问候, 阿什什
【问题讨论】:
-
可以手动ssh到主服务器,然后ssh到从服务器吗?它们是否在同一个 VPC 中,您的安全组设置是否正确?
-
我在这里面临同样的问题。服务器没有任何问题,只是插件强制 Jenkins 在私有 IP 上连接。我找到了这张票:issues.jenkins-ci.org/browse/JENKINS-19943 状态已解决,但似乎没有。作为参考,我没有使用默认 VPC。
标签: amazon-web-services ssh jenkins amazon-ec2