0

I Am trying to connect My On-premises Jenkins to AWS Ec2 via SSH Connection. But I am Unable to connect.

It is getting error while checking Connection As shown below

Jenkins

Can anyone tell How to connect my On-premises Jenkins to AWS Ec2 instance?

  • 1
    Does the security group where your instance is has the port 22 open? Is your EC2 in a public subnet? What if your try from your pc? – brushtakopo Nov 09 '22 at 14:35
  • yes port 22 is open and ec2 is in public subnet. Our's is secure environment and we are using msjenkins – Vinay Kumar Nov 10 '22 at 10:12
  • you followed this? https://www.thesunflowerlab.com/blog/jenkins-aws-ec2-instance-ssh/ Are you sure your on-premises is able to make outbound connection on port 22? – brushtakopo Nov 10 '22 at 10:43

0 Answers0