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년 전222회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠