Linux

telnet 으로 포트 오픈 확인하기

Jack Moon 2014. 10. 7. 16:04

Ubuntu 22.04 에서 테스트 (2023. 1. 30)

방화벽이 오픈되어 있고 프로세스가 떠 있는 경우 (아래와 같이 바로 뜸)

[c:\~]$ telnet 192.168.0.11 22


Connecting to 192.168.0.11:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.1

 

방화벽만 오픈되어 있고 프로세스가 꺼져있는 경우 (바로 에러 뜸)

[c:\~]$ telnet 192.168.0.11 22


Connecting to 192.168.0.11:22...
Could not connect to '192.168.0.11' (port 22): Connection failed.

 

방화벽이 닫혀 있는 경우 (한참 딜레이 됨)

[c:\~]$ telnet 192.168.0.11 23


Connecting to 192.168.0.11:23...
Could not connect to '192.168.0.11' (port 23): Connection failed.

 

 

CentOS 테스트

 

방화벽이 오픈되어 있고 프로세스가 떠 있는 경우

[root@test11 mail]# telnet 192.168.10.20 22

Trying 192.168.10.20...

Connected to 192.168.10.20 (192.168.10.20).

Escape character is '^]'.

SSH-2.0-OpenSSH_4.3

 

 

방화벽만 오픈되어 있고 프로세스가 꺼져있는 경우

[root@test11 mail]# telnet 192.168.10.20 5080

Trying 192.168.10.20...

telnet: connect to address 192.168.10.20: Connection refused

telnet: Unable to connect to remote host: Connection refused

 

방화벽이 닫혀 있는 경우

[root@test11 mail]# telnet 192.168.10.20 5070

Trying 192.168.10.20... ~~~~~~~~~한참 딜레이가 됨 

 

telnet: connect to address 192.168.10.20: Connection timed out

telnet: Unable to connect to remote host: Connection timed out

'Linux' 카테고리의 다른 글

YUM 다음 repo 사용하기  (0) 2014.10.08
iptables 방화벽 설정 (포트 오픈)  (0) 2014.10.07
리눅스 시간 설정 (뉴욕시간으로 설정하기)  (0) 2014.06.09
Mysql 백업 및 복구  (0) 2013.11.15
EUC-KR -> UTF-8 변환  (0) 2013.05.13