Difference between revisions of "Telnet"

From ArchWiki
Jump to: navigation, search
m (Wrong link)
(22 intermediate revisions by 10 users not shown)
Line 1: Line 1:
Under construction
+
[[Category:Networking]]
 +
[[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]].
  
=Introduction=
+
Follow these instructions to configure an Arch Linux machine as a telnet server.
 
 
TELNET is the traditional protocol for making remote console connections over TCP.
 
 
 
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.
+
== Installation ==
  
=Installation=
+
To use telnet only to connect to other machines, [[pacman|install]] {{Pkg|inetutils}}.
  
To only use telnet to connect to other machines, install netkit-telnet:
+
To configure a telnet server, install {{Pkg|xinetd}} as well.
  
<pre>
+
== Configuration ==
pacman -S netkit-telnet
 
</pre>
 
  
To also configure a telnet server install xinetd as well:
+
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.
  
<pre>
+
Enable [[systemd]] xinetd service if you wish to start it at boot time.
pacman -S xinetd netkit-telnet
 
</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.
+
=== Testing the setup ===
  
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).
+
Try opening a telnet connection to your server:
 +
$ telnet localhost
  
=Configuration=
+
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.