Telnet

From XennisWiki
Jump to: navigation, search

Telnet is a protocol used on the Internet or local area network to provide a bidirectional interactive text-oriented communication facility using a virtual terminal connection. User data is interspersed in-band with Telnet control information in an 8-bit byte oriented data connection over the Transmission Control Protocol (TCP). (Wikipedia)

Installation

Arch Linux

Install the inetutils package.

Debian

apt-get install telnet

Windows

Activate Telnet

  • Start > Systemsteuerung > Programm deinstallieren > Windows-Funktionen aktivieren oder deaktivieren
  • Telnet-Client auswählen > OK

Run telnet

  • Open the shell (Start > cmd.exe) and enter: telnet

Usage

Basic usage

telnet <host> <port>

Exit terminal

Press first "^ + ]", then "Ctrl + ]" and enter quit.

Alternative Netcat

Installation

Debian

apt-get install netcat

Usage

netcat <host> <port>
nc <host> <port>

Open at port 8000 a connection to 162.39.154.35 port 22 (with a timeout of 5 seconds)

netcat -w 5 -p 8000 162.39.154.35 22

Use -u for using TCP instead of UDP.

Check port is open

The port can be a port range as well, e.g. 20-30.

nc -vuz -w 3 <host> <port>

See also

External links