> For the complete documentation index, see [llms.txt](https://riteshs4hu.gitbook.io/infosec-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://riteshs4hu.gitbook.io/infosec-notes/linux-server-administrator/servers-configurations-debian/telnet.md).

# Telnet

Telnet is a protocol that allows users to remotely access and manage devices, such as computers or network routers, over a network using a command-line interface. **Telnet is an insecure protocol**, as all data, including passwords, is transmitted in plain text.

***

### Telnet Client

Install Telnet Client

```bash
apt install telnet
```

Connect to a Remote Server Using Telnet

```bash
telnet <remote_server_ip>
```

***

### Telnet Server

Install Telnet Server Package

```bash
apt install telnetd
```

Allow Telnet Port in Firewall (iptables)

```bash
iptables -A INPUT -p tcp --dport 23 -j ACCEPT
iptables-save
systemctl restart iptables
```

* Start and Enable Telnet Service

```bash
systemctl start inetd
systemctl enable inetd
```

***

Resources:

{% embed url="<https://en.wikipedia.org/wiki/Telnet>" %}
