Difference between revisions of "Telnet"

From ArchWiki
Jump to: navigation, search
m (Introduction: fixed typo - "now days" -> "nowadays")
m (Re category)
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
[[Category:Daemons_and_system_services (English)]]
+
[[Category:Networking]]
 
+
[[de:Telnet]]
{{i18n_links_start}}
+
[[es:Telnet]]
{{i18n_entry|English|Telnet}}
+
[[zh-CN:Telnet]]
{{i18n_entry|简体中文|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]].
{{i18n_links_end}}
 
=Introduction=
 
 
 
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.
 
  
 
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):
 
To use telnet only to connect to other machines, install inetutils (if not already installed):
 
+
# pacman -S inetutils
<pre>
 
# pacman -S inetutils
 
</pre>
 
  
 
To configure a telnet server, install xinetd as well:
 
To configure a telnet server, install xinetd as well:
 +
# pacman -S xinetd
  
<pre>
+
==Configuration==
# pacman -S xinetd
 
</pre>
 
 
 
=Configuration=
 
 
 
1. To allow telnet connections in xinetd:
 
<pre>
 
# vi /etc/xinetd.d/telnet
 
</pre>
 
 
 
Change 'disable' from 'yes' to 'no'
 
 
 
2. To allow telnet connections to your machine, add the following to /etc/hosts.allow:
 
<pre>
 
telnetd: ALL
 
</pre>
 
  
3. Add xinetd to the "DAEMONS" section of your /etc/rc.conf file.
+
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]]:
DAEMONS=(syslog-ng network netfs crond ............ xinetd)
+
DAEMONS=(... '''xinetd''')
</pre>
 
  
4. Reboot or restart xinetd:
+
3. Reboot or restart xinetd:
<pre>
+
# /etc/rc.d/xinetd restart
# /etc/rc.d/xinetd restart
 
</pre>
 
  
 
===Testing the setup===
 
===Testing the setup===
  
 
Try opening a telnet connection to your server:
 
Try opening a telnet connection to your server:
<pre>
+
$ telnet localhost
$ telnet localhost
 
</pre>
 
  
 
Note that you can not login as root.
 
Note that you can not login as root.

Revision as of 11:41, 16 December 2012

zh-CN: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.

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.