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
已提问 3 年前228 查看次数
1 回答
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
已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则