Connection time out after installing firewalld

0

While configuring a Ubuntu 22 server on a AWS g4dn instance, I tried to check the list of firewall through this command in the git bash terminal. [firewall-cmd --list-all] I was told by the terminal to install the firewalld using the following command. [sudo apt install firewalld] However, installation was interrupted with the message below. [client_loop: send disconnect: Connection reset by peer] Once I closed the terminal to restart, my ssh connection gets timeout error as the following. Terminal Input: [ssh -i KeyPair ubuntu@example.us-east-2.compute.amazonaws.com] Terminal Output: [ssh: connect to host example.us-east-2.compute.amazonaws.com port 22: Connection timed out].

I have checked the Security group and confirmed that TCP port 22 is still available. It seems that the newly installed firewalld is causing the problem. How can I resolve this issue?

JWI
질문됨 8달 전303회 조회
1개 답변
0
수락된 답변
  1. Use EC2 Instance terminal to connect to the server. [Set up the configuration based on the direction given from AWS console]
  2. Once logging in with the user account, switch to root user. [Sudo bash]
  3. Disable firewalld with [systemctl disable firewalld]
  4. Add 22/tcp to the UFW [sudo ufw allow 22/tcp]
JWI
답변함 8달 전

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

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

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

관련 콘텐츠