ec2-plugin can create instances but doesn’t keep the ssh connection

Article ID:204488410
1 minute readKnowledge base

Issue

  • ec2-plugin can create instances but doesn’t keep the ssh connection

  • You see a stacktrace like the one below:

Waiting for SSH to come up. Sleeping 5.
Connecting to XX.XX.XX.XX on port 22, with timeout 10000.
Waiting for SSH to come up. Sleeping 5.
Connecting to XX.XX.XX.XX on port 22, with timeout 10000.
Waiting for SSH to come up. Sleeping 5.
Connecting to XX.XX.XX.XX on port 22, with timeout 10000.

Environment

  • CloudBees Jenkins Enterprise

  • ec2-plugin

Resolution

This usually happens because you have a HTTP Proxy Configuration under https://<JENKINS_URL>/pluginManager/advanced that maybe you don’t need or you don’t really want to use for the ec2-plugin.