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
gefragt vor 3 Jahren228 Aufrufe
1 Antwort
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
beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen