RH9.0 安装与启动telnet服务步骤
RH9.0 安装与启动telnet服务步骤: by coding
telnet分为两个部分
一个为telnet 客户端
一个为telnet 服务端
先判断系统是否已经安装telnet客户端及服务端使用
rpm -qa | grep "telnet"
telnet客户端rpm包名为: telnet-0.17-25.386.rpm (在RH的第一张安装光盘里)
telnet服务端rpm包名为: telnet-server-0.17-25.i386.rpm (在RH的第三张光盘里)
# rpm -ivh telnet-0.17-25.386.rpm 提示安装成功
# rpm -ivh telnet-server-0.17-25.i386.rpm 提示安装成功启动服务:
当telnet-server安装成功后,在/etc/xinetd.d目录下会生成一个telnet的文本文件,内容如下:
# default: on n # description: The telnet server serves telnet sessions; it uses # unencrypted username/password pairs for authentication. service telnet { flags = REUSE socket_type = stream wait = no user = root server = /usr/sbin/in.telnetd log_on_failure += USERID disable = yes }
将上文件中 disable=yes改为 disable = no;
保存退出
# chkconfig --list
xinetd based services:
chargen-udp: off
rsync: off
chargen: off
daytime-udp: off
daytime: off
echo-udp: off
echo: off
services: off
servers: off
time-udp: off
time: off
sgi_fam: on
telnet: on
telnet no 说明配置文件修改成功因为是xinetd守护的服务所以需要以下方法启动:
重起xinetd
# service xinetd restart
# nmap 127.0.0.1 Starting nmap V. 3.00 ( www.insecure.org/nmap/ ) Interesting ports on localhost.localdomain (127.0.0.1): (The 1595 ports scanned but not shown below are in state: closed) Port State Service 22/tcp open ssh 23/tcp open telnet 25/tcp open smtp 111/tcp open sunrpc 1024/tcp open kdm telnet
服务启动成功卸载:
将 服务停止;
# rpm -ev telnet-server-0.17-25.i386.rpm
提示卸载成功卸载telnet-server时会提示将telnet改名为telnet.rpmsave保存设置. 完