分享

CentOS下安装和开启Telnet服务

 若水~三千 2012-06-21
 
                                                                                           CentOS 安装并开启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./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./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 
或者 service xinetd restart 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多