Linux Tips and Tricks

Linux Tips and Tricks

Checking the port if open or not (using telnet)


TELNET (TELecommunication NETwork) is a network protocol used on the Internet.

TELNET is a client-server protocol, based on a reliable connection-oriented transport. This command will help us to find if a particular port on the server is open or not.


In the below example i am checking whether port # 22 is open or not in my system

[kamaraj@Kamaraj ~]$ telnet 22
Connected to
Escape character is '^]'.

If you get the above message "Connected to" then it is open. If you get a message like "connection refused" then it the port is not open.

posted under Uncategorized

Email will not be published

Website example

Your Comment:

Recent Comments