IT이야기
리눅스에서 포트 열림 확인 방법
영은파더♥
2020. 4. 7. 11:00
728x90
리눅스에서 간단히 포트가 열려있는지 체크하는 방법입니다.
먼저 telnet 유틸을 설치합니다.
# yum -y install telnet
telnet 주소 그리고 뒷쪽에 확인하려는 포트 번호를 적어주면 됩니다.
[root@localhost ~]# telnet www.example.com 21
Trying 192.168.1.2...
telnet: connect to address 192.168.1.2: Connection refused
[root@localhost ~]# telnet www.example.com 443
Trying 192.168.1.2...
Connected to www.example.com.
Escape character is '^]'.
^]
telnet>
Connection closed by foreign host.
텔넷 종료는 Ctrl + ] 입니다.
728x90
반응형