Difference between revisions of "Telnet"

From ArchWiki
Jump to: navigation, search
(Use I18n template)
m (Wrong link)
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
[[Category:Daemons_and_system_services (English)]]
+
[[Category:Networking]]
{{i18n|Telnet}}
+
[[de:Telnet]]
 
+
[[es:Telnet]]
=Introduction=
+
[[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]].
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):
 
 
 
<pre>
 
# pacman -S inetutils
 
</pre>
 
 
 
To configure a telnet server, install xinetd as well:
 
 
 
<pre>
 
# 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'
+
To use telnet only to connect to other machines, [[pacman|install]] {{Pkg|inetutils}}.
  
2. To allow telnet connections to your machine, add the following to /etc/hosts.allow:
+
To configure a telnet server, install {{Pkg|xinetd}} as well.
<pre>
 
telnetd: ALL
 
</pre>
 
  
3. Add xinetd to the "DAEMONS" section of your /etc/rc.conf file.
+
== Configuration ==
  
<pre>
+
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=(syslog-ng network netfs crond ............ xinetd)
 
</pre>
 
  
4. Reboot or restart xinetd:
+
Enable [[systemd]] xinetd service if you wish to start it at boot time.
<pre>
 
# /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 10:06, 1 June 2013

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.

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.