How to configure telnet service under RedHat linux

  

The configuration steps of Telnet service are as follows:


First, install telnet package (usually two)

1, telnet-client (or telnet), this package provides telnet client program;

2, telnet-server, this package provides telnet server-side program;

Check if these packages are installed before installation, as follows:
[root@ld-pc root]#rpm –q telnet or [root@ld-pc root]#rpm –q telnet -client[root@ld-pc root]#rpm –q telnet-server

If no package is detected, you need to install it. Red hat linux 9 has telnet package installed by default, generally just install telnet-server Software package.

1. Obtain the telnet-server-0.17-25.i386.rpm package in the red hat linux 9 installation disk.

2, installation package
[root@ld-pc root]# rpm -Uvh telnet-server-0.17-25.i386.rpmwarning: telnet-server-0.17-25.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60ePreparing... ################################################### ##### [100%]1: telnet-server ################################################# ####### [100%]

The system now has a telnet-server package
[root@ld-pc root]# rpm -qa| Grep 'telnet'telnet-0.17-26.EL3.2telnet-server-0.17-26telnet configuration and use

Second, start telnet service

telnet integrated in xinetd Service
[root@ld-pc root]# /sbin/chkconfig --listmicrocode_ctl 0:off 1:off 2:on 3:on 4:on 5:on 6:offgpm 0:off 1:off 2: On 3:on 4:on 5:on 6:offkudzu 0:off 1:off 2:off 3:on 4:on 5:on 6:off..krb5-telnet: offrsync: offeklogin: offgssftp: offklogin: offchargen- Udp: offkshell: offauth: onchargen: offdaytime-udp: offdaytime: offecho-udp: offecho: offservices: offtime: offtime-udp: offcups-lpd: offsgi_fam: onswat: offtelnet: off

where telnet is off, passing The following method can start telnet
cp /etc/xinetd.d/telnet /etc/xinetd.d/telnet.bk //Back up telnet configuration file vi /etc/xinetd.d./telnet //Modify the value of disable Restart xinetd service for no


[root@ld-pc root]# /sbin/service xinetd restartStopping xinetd: [ OK ]Starting xinetd: [ OK ]

Run /sbin/chkconfig --list again Result
[root@ld-pc root]# /sbin/chkconfig --listmicrocode _ctl 0:off 1:off 2:on 3:on 4:on 5:on 6:offgpm 0:off 1:off 2:on 3:on 4:on 5:on 6:offkudzu 0:off 1:off 2 :off 3:on 4:on 5:on 6:off...krb5-telnet: offrsync: offeklogin: offgssftp: offklogin: offchargen-udp: offkshell: offauth: onchargen: offdaytime-udp: offdaytime: offecho-udp: offecho : offservices: offtime: offtime-udp: offcups-lpd: offsgi_fam: onswat: offtelnet: on

Visible telnet has started.

3, test
[root@ld-pc root]# telnet 192.168.1.253Trying 192.168.1.253.Connected to 192.168.1.253Escape character is '^]'.Red Hat Enterprise Linux AS release 3 (Taroon Update 5) Kernel 2.4.21-32.EL on an i686login:

If the login fails, check if the server's firewall allows telnet.

4. If the xinetd service is not configured to boot, you can configure xinetd to start the service.
chkconfig xinetd --level 345 on

Under normal circumstances, root login is not allowed. If you need to, you can log in with other users first, then you can use su - root.

Copyright © Windows knowledge All Rights Reserved