Difference between revisions of "Telnet"

From ArchWiki
Jump to: navigation, search
Line 1: Line 1:
 
[[Category:Daemons_and_system_services (English)]]
 
[[Category:Daemons_and_system_services (English)]]
Under construction
 
  
 
=Introduction=
 
=Introduction=
Line 15: Line 14:
  
 
<pre>
 
<pre>
pacman -S netkit-telnet
+
# pacman -S netkit-telnet
 
</pre>
 
</pre>
  
Line 21: Line 20:
  
 
<pre>
 
<pre>
pacman -S xinetd netkit-telnet
+
# pacman -S xinetd netkit-telnet
 
</pre>
 
</pre>
  
Line 32: Line 31:
 
1. To allow telnet connections in xinetd:
 
1. To allow telnet connections in xinetd:
 
<pre>
 
<pre>
vi /etc/xinetd.d/telnet
+
# vi /etc/xinetd.d/telnet
 
</pre>
 
</pre>
  
 
Change 'disable' from 'yes' to 'no'
 
Change 'disable' from 'yes' to 'no'
 
  
 
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:
Line 43: Line 41:
 
</pre>
 
</pre>
  
3. Add xinetd to the "DAEMONS" section of your /etc/rc.conf
+
3. Add xinetd to the "DAEMONS" section of your /etc/rc.conf file.
  
 
4. Reboot or restart xinetd:
 
4. Reboot or restart xinetd:
 
<pre>
 
<pre>
/etc/rc.d/xinetd restart
+
# /etc/rc.d/xinetd restart
 
</pre>
 
</pre>

Revision as of 18:26, 28 May 2008


Introduction

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

To only use telnet to connect to other machines, install netkit-telnet:

# pacman -S netkit-telnet

To also configure a telnet server, install xinetd as well:

# pacman -S xinetd netkit-telnet
  • 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

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:

in.telnetd: ALL

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

4. Reboot or restart xinetd:

# /etc/rc.d/xinetd restart