Difference between revisions of "Telnet"

From ArchWiki
Jump to: navigation, search
m (l18n)
(17 intermediate revisions by 8 users not shown)
Line 1: Line 1:
[[Category:Daemons_and_system_services (English)]]
+
[[Category:Daemons and system services]]
 
+
[[de:Telnet]]
=Introduction=
+
[[es:Telnet]]
 
+
[[zh-CN:Telnet]]
TELNET is the traditional protocol for making remote console connections over TCP.
+
[[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]].
 
+
TELNET is not secured and is mainly used to connect to legacy equipment now days.
+
  
 
Follow these instructions to configure an Arch Linux machine as a telnet server.
 
Follow these instructions to configure an Arch Linux machine as a telnet server.
  
=Installation=
+
==Installation==
 
+
To only use telnet to connect to other machines, install netkit-telnet:
+
 
+
<pre>
+
# pacman -S netkit-telnet
+
</pre>
+
 
+
To also configure a telnet server, install xinetd as well:
+
  
<pre>
+
To use telnet only to connect to other machines, install inetutils (if not already installed):
# pacman -S xinetd netkit-telnet
+
# pacman -S inetutils
</pre>
+
  
*Important, "Telnetd is evil legacy code and is not trustworthy - do not run it unless you absolutely need it." a quote from the netkit-telnet readme.
+
To configure a telnet server, install xinetd as well:
 +
# pacman -S xinetd
  
A better option when needing a telnet server, is to install telnet-bsd from AUR instead of netkit-telnet (which also has support for IPv6).
+
==Configuration==
  
=Configuration=
+
1. To allow telnet connections in xinetd, edit {{ic|/etc/xinetd.d/telnet}} and change '{{Ic|1=disable = yes}}' to '{{Ic|1=disable = no}}'
  
1. To allow telnet connections in xinetd:
+
2. Add {{Ic|xinetd}} to the {{Ic|DAEMONS}} array of your [[rc.conf]]:
<pre>
+
DAEMONS=(... '''xinetd''')
# vi /etc/xinetd.d/telnet
+
</pre>
+
  
Change 'disable' from 'yes' to 'no'
+
3. Reboot or restart xinetd:
 +
# /etc/rc.d/xinetd restart
  
2. To allow telnet connections to your machine, add the following to /etc/hosts.allow:
+
===Testing the setup===
<pre>
+
in.telnetd: ALL
+
</pre>
+
  
3. Add xinetd to the "DAEMONS" section of your /etc/rc.conf file.
+
Try opening a telnet connection to your server:
 +
$ telnet localhost
  
4. Reboot or restart xinetd:
+
Note that you can not login as root.
<pre>
+
# /etc/rc.d/xinetd restart
+
</pre>
+

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.