Difference between revisions of "Telnet"

From ArchWiki
Jump to: navigation, search
(misc formating, links, and fixes)
m (<tt>text</tt> -> {{Codeline|text}} for trivial cases)
Line 16: Line 16:
 
==Configuration==
 
==Configuration==
  
1. To allow telnet connections in xinetd, edit {{filename|/etc/xinetd.d/telnet}} and change '<tt>disable = yes</tt>' to '<tt>disable = no</tt>'
+
1. To allow telnet connections in xinetd, edit {{filename|/etc/xinetd.d/telnet}} and change '{{Codeline|1=disable = yes}}' to '{{Codeline|1=disable = no}}'
  
2. Add <tt>xinetd</tt> to the <tt>DAEMONS</tt> array of your [[rc.conf]]:
+
2. Add {{Codeline|xinetd}} to the {{Codeline|DAEMONS}} array of your [[rc.conf]]:
 
  DAEMONS=(... '''xinetd''')
 
  DAEMONS=(... '''xinetd''')
  

Revision as of 20:31, 6 September 2011

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

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 Template:Filename and change 'Template:Codeline' to 'Template:Codeline'

2. Add Template:Codeline to the Template:Codeline 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.