Cannot connect or view new ec2 instance

0

ID: i-02fe3025173fb0670

I am attempting to use Jenkins on an ec2 Windows instance however I get a connection timed out error if I attempt to ssh into the instance and when I attempt to view the public address.

Am able to connect using windows Remote Desktop Connection which has been enough to allow me to install Jenkins on port 8080 but I need to be able to access it through https.

I am using a public subnet with an elastic IP with these inbound rules:
HTTP TCP 80 0.0.0.0/0 -
HTTP TCP 80 ::/0 -
Custom TCP TCP 8080 0.0.0.0/0 -
Custom TCP TCP 8080 ::/0 -
SSH TCP 22 (my ip)/32 -
RDP TCP 3389 (my ip)/32 -
HTTPS TCP 443 0.0.0.0/0 -
HTTPS TCP 443 ::/0 -

ruvans
asked 3 years ago201 views
1 Answer
0

So I opened a AWS case and got some resources to fix my problems which were not to do with these security rules but with my instance's firewall.

I used remote desktop connection to install an ssh client on my instance using these instructions. Now I can secure copy over the files I needed.
https://www.concurrency.com/blog/february-2019/getting-started-with-ssh-on-windows-server-2019

Then I added rules to my firewall in order to allow access to port 8080
https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-firewall/create-an-inbound-port-rule
https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-firewall/create-an-outbound-port-rule

Now I'm going to change my security inbound rules to only allow certain IPs for safety.

ruvans
answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions