CentOS下安装并启用Telnet服务
2014-03-08 14:17:28   来源:   评论:0 点击: 收藏

1、查看有没有安装telnet服务rpm –qa|grep telnet没有则找安装包进行安装。如果有安装光盘,在安装光盘中找到相应的安装包进行安装...

1、查看有没有安装telnet服务

rpm –qa|grep telnet

没有则找安装包进行安装。如果有安装光盘,在安装光盘中找到相应的安装包进行安装。这里直接通过网络安装

2、通过yum install安装Telnet程序

[root@bogon xinetd.d]# yum  list   telnet-server

Loading "installonlyn" plugin

Setting up repositories

Reading repository metadata in from local files

Available Packages

telnet-server.i386                       1:0.17-39.el5          base           

[root@bogon xinetd.d]# yum install telnet-server

Loading "installonlyn" plugin

Setting up Install Process

Setting up repositories

Reading repository metadata in from local files

Parsing package install arguments

Resolving Dependencies

--> Populating transaction set with selected packages. Please wait.

---> Downloading header for telnet-server to pack into transaction set.

telnet-server-0.17-39.el5 100% |=========================| 8.4 kB    00:01    

---> Package telnet-server.i386 1:0.17-39.el5 set to be updated

--> Running transaction check

 

Dependencies Resolved

 

=============================================================================

 Package                 Arch       Version          Repository        Size

=============================================================================

Installing:

 telnet-server           i386       1:0.17-39.el5    base               35 k

 

Transaction Summary

=============================================================================

Install      1 Package(s)        

Update       0 Package(s)        

Remove       0 Package(s)        

 

Total download size: 35 k

Is this ok [y/N]: y  选程Yes

Downloading Packages:

(1/1): telnet-server-0.17 100% |=========================|  24 kB    00:31    

http://ftp.stu.edu.tw/Linux/CentOS/5.2/os/i386/CentOS/telnet-server-0.17-39.el5.i386.rpm: [Errno 4] Socket Error: timed out

Trying other mirror.

http://centos.cs.nctu.edu.tw/5.2/os/i386/CentOS/telnet-server-0.17-39.el5.i386.rpm: [Errno 4] IOError: <urlopen error (104, 'Connection reset by peer')>

Trying other mirror.

(1/1): telnet-server-0.17 100% |=========================|  35 kB    00:00    

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing: telnet-server                ######################### [1/1]

 

Installed: telnet-server.i386 1:0.17-39.el5

Complete!

 

3、修改配置文件more /etc/xinetd.d/telnet

 

[root@bogon xinetd.d]# more telnet

# default: on

# 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改成no。

4、重启服务生效

/etc/init.d/xinetd restart

相关热词搜索:

上一篇:Centos查看内存使用情况和清理内存
下一篇:linux主机644、755、777权限详解