Difference between revisions of "Telnet"

From ArchWiki
Jump to: navigation, search
(New page: Under construction =Introduction= TELNET is the traditional protocol for making remote console connections over TCP. TELNET is not secured and is mainly used to connect to legacy equipm...)
 
m (l18n)
(20 intermediate revisions by 8 users not shown)
Line 1: Line 1:
Under construction
+
[[Category:Daemons and system services]]
 +
[[de:Telnet]]
 +
[[es:Telnet]]
 +
[[zh-CN:Telnet]]
 +
[[Wikipedia:Telnet|Telnet]] is the traditional protocol for making remote console connections over TCP. Telnet is '''not secure''' and is mainly used to connect to legacy equipment nowadays. For a secure alternative see [[SSH]].
  
=Introduction=
+
Follow these instructions to configure an Arch Linux machine as a telnet server.
  
TELNET is the traditional protocol for making remote console connections over TCP.
+
==Installation==
  
TELNET is not secured and is mainly used to connect to legacy equipment now days.
+
To use telnet only to connect to other machines, install inetutils (if not already installed):
 +
# pacman -S inetutils
  
Follow these instructions to configure an Arch Linux machine as a telnet server.
+
To configure a telnet server, install xinetd as well:
 +
# pacman -S xinetd
  
=Installation=
+
==Configuration==
  
To only use telnet to connect to other machines, install netkit-telnet:
+
1. To allow telnet connections in xinetd, edit {{ic|/etc/xinetd.d/telnet}} and change '{{Ic|1=disable = yes}}' to '{{Ic|1=disable = no}}'
  
<pre>
+
2. Add {{Ic|xinetd}} to the {{Ic|DAEMONS}} array of your [[rc.conf]]:
pacman -S netkit-telnet
+
DAEMONS=(... '''xinetd''')
</pre>
+
  
To configure a telnet server install xinetd as well:
+
3. Reboot or restart xinetd:
 +
# /etc/rc.d/xinetd restart
  
<pre>
+
===Testing the setup===
pacman -S xinetd netkit-telnet
+
</pre>
+
  
*Imortant Telnetd is evil legacy code and is not trustworthy - do not run it unless you absolutely need it.
+
Try opening a telnet connection to your server:
 +
$ telnet localhost
  
Therefor, a better option is to install telnet-bsd from AUR.
+
Note that you can not login as root.

Revision as of 18:58, 29 November 2012

Telnet is the traditional protocol for making remote console connections over TCP. Telnet is not secure and is mainly used to connect to legacy equipment nowadays. For a secure alternative see SSH.

Follow these instructions to configure an Arch Linux machine as a telnet server.

Installation

To use telnet only to connect to other machines, install inetutils (if not already installed):

# pacman -S inetutils

To configure a telnet server, install xinetd as well:

# pacman -S xinetd

Configuration

1. To allow telnet connections in xinetd, edit /etc/xinetd.d/telnet and change 'disable = yes' to 'disable = no'

2. Add xinetd to the DAEMONS array of your rc.conf:

DAEMONS=(... xinetd)

3. Reboot or restart xinetd:

# /etc/rc.d/xinetd restart

Testing the setup

Try opening a telnet connection to your server:

$ telnet localhost

Note that you can not login as root.