Telnet Command In Linux
Chapter:
Linux Commands
Last Updated:
13-08-2019 03:40:30 UTC
Program:
/* ............... START ............... */
$ telnet javascan.com 8080
Trying 104.31.93.139...
Connected to javascan.com.
Escape character is '^]'.
/* Above command telnet is used check whether the host is communicating with the specific port */
$ telnet javascan.com 22
Trying 104.31.92.139...
Trying 104.31.93.139...
Trying 2606:4700:30::681f:5d8b...
Trying 2606:4700:30::681f:5c8b...
telnet: Unable to connect to remote host: Network is unreachable
/* Port 22 is not opened for javascan.com and giving unable to connect message */
/* ............... END ............... */
Output
Notes:
-
Telnet Command Syntax : telnet [host] [port]
- Telnet command in linux is used to communicate with another host with Telnet Protocol.
- In telnet command you have to provide the host and port to connect to the protocol.
- If you are given any port which is not open for this host, telnet command will give message "Unable to connect to remote host: Network is unreachable".
- port number is optional, by default it goes to port 23.
Tags
Telnet Command In Linux, telnet command with port , telnet command example, Telnet command with host and port