Difference between revisions of "Telnet"

From ArchWiki
Jump to: navigation, search
Line 13: Line 13:
 
=Installation=
 
=Installation=
  
To only use telnet to connect to other machines, install netkit-telnet:
+
To use telnet only to connect to other machines, install inetutils (if not already installed):
  
 
<pre>
 
<pre>
# pacman -S netkit-telnet
+
# pacman -S inetutils
 
</pre>
 
</pre>
  
To also configure a telnet server, install xinetd as well:
+
To configure a telnet server, install xinetd as well:
  
 
<pre>
 
<pre>
# pacman -S xinetd netkit-telnet
+
# pacman -S xinetd
 
</pre>
 
</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.
 
 
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).
 
  
 
=Configuration=
 
=Configuration=
Line 40: Line 36:
 
2. To allow telnet connections to your machine, add the following to /etc/hosts.allow:
 
2. To allow telnet connections to your machine, add the following to /etc/hosts.allow:
 
<pre>
 
<pre>
in.telnetd: ALL
+
telnetd: ALL
 
</pre>
 
</pre>
  
Line 61: Line 57:
 
</pre>
 
</pre>
  
Note that you can not login as root (to either netkit or bsd telnet).
+
Note that you can not login as root.

Revision as of 18:21, 29 January 2009

Template:I18n links start Template:I18n entry Template:I18n entry Template: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 now days.

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:

# vi /etc/xinetd.d/telnet

Change 'disable' from 'yes' to 'no'

2. To allow telnet connections to your machine, add the following to /etc/hosts.allow:

telnetd: ALL

3. Add xinetd to the "DAEMONS" section of your /etc/rc.conf file.

DAEMONS=(syslog-ng network netfs crond ............ xinetd)

4. 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.