Connect to a specified port of a host using the telnet protocol. More information: https://manned.org/telnet.
telnet host
telnet ip_address port
quit
<Ctrl> + ]
telnet
with “x” as the session termination character:telnet -e x ip_address port
telnet towel.blinkenlights.nl