title: Local jenkins connection with VPC ec2 instanse
body: <p>I have a jenkins server in company network. Need to spin an EC2 instance using jenkins ec2 plugins. I was under impression that after giving access, secret keys and AMI Id, opening security group for ssh port 22 (its a linux image). I would be able to connect ec2 instance as slave. But its throwing below error. </p>
  
  <pre><code>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
  </code></pre>
  
  <p>.</p>
  
  <p>I am able to connect ec2 instance using public ip from my local machine. All i can see is that jenkins trying to access using private ip. I have given a subnet id since its in vpc. Any settings in jenkins or VPC which need to be changed?</p>
  
  <p>Regards,
  Ashish</p>