Difference between revisions of "Telnet"

From ArchWiki
Jump to: navigation, search
m (Wrong link)
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:Daemons and system services]]
+
[[Category:Networking]]
{{i18n|Telnet}}
+
[[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]].
 
[[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]].
  
 
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 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:
+
To use telnet only to connect to other machines, [[pacman|install]] {{Pkg|inetutils}}.
# pacman -S xinetd
+
  
==Configuration==
+
To configure a telnet server, install {{Pkg|xinetd}} as well.
  
1. To allow telnet connections in xinetd, edit {{ic|/etc/xinetd.d/telnet}} and change '{{Ic|1=disable = yes}}' to '{{Ic|1=disable = no}}'
+
== Configuration ==
  
2. Add {{Ic|xinetd}} to the {{Ic|DAEMONS}} array of your [[rc.conf]]:
+
To allow telnet connections in xinetd, edit {{ic|/etc/xinetd.d/telnet}}, change {{ic|1=disable = yes}} to {{ic|1=disable = no}} and restart xinetd service.
DAEMONS=(... '''xinetd''')
+
  
3. Reboot or restart xinetd:
+
Enable [[systemd]] xinetd service if you wish to start it at boot time.
# /etc/rc.d/xinetd restart
+
  
===Testing the setup===
+
=== Testing the setup ===
  
 
Try opening a telnet connection to your server:
 
Try opening a telnet connection to your server:

Revision as of 10:06, 1 June 2013

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.

To configure a telnet server, install xinetd as well.

Configuration

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

Enable systemd xinetd service if you wish to start it at boot time.

Testing the setup

Try opening a telnet connection to your server:

$ telnet localhost

Note that you can not login as root.