Back to the command reference

telnet

NetworkFundamentalsReference only

Connect to a remote port (often to test it)

Name: telnet = teletype network

This command is outside what the site lets you practise (mostly distribution-specific or rarely used tools). This page describes how to use it; try it on your own Linux system.

Description

telnet was built for remote login but sends everything, passwords included, in plain text and has been replaced by ssh. Today it is mostly used to test whether a port accepts connections, e.g. telnet example.com 80.

Syntax

telnet HOST [PORT]

Common options

HOST PORTConnect to PORT on HOST (often to test whether a port is open)

Examples

  • $ telnet example.com 80

    Test whether port 80 accepts connections

    Explain

Related