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


            Telnet Command In Linux
        

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

Similar Programs Chapter Last Updated
How To Enable Permission On File Linux Ubuntu Linux Commands 26-08-2023
Linux Command To Give All Permissions To A File Linux Commands 24-08-2023
Important Network Commands In Linux Linux Commands 24-08-2023
Important Commands In Linux Linux Commands 24-08-2023
Grep Command In Linux Example Linux Commands 10-05-2023
Traceroute Command In Ubuntu Linux Commands 10-05-2023
Linux Command To Count Number Of Files In A Directory Linux Commands 18-03-2023
Linux Version Command Linux Commands 01-12-2020
Unzip Command In Linux Linux Commands 20-11-2019
Process Command In Linux Linux Commands 16-11-2019
Linux Command To Create Link Linux Commands 15-11-2019
Linux Command To View File Content Linux Commands 25-10-2019
Linux Command To Check OS Version Linux Commands 25-10-2019
Netstat Command In Linux Linux Commands 13-08-2019
Linux Command To Create A File Linux Commands 23-05-2019
Linux echo Command Linux Commands 05-05-2018
Linux Ping Command Linux Commands 05-05-2018
Linux ls (List Directory) Command Linux Commands 17-03-2018

1