1。基础知识
linux提供服务是由运行在后台的守护程序(daemon)来执行的。
守护进程的工作就是打开1个端口(port),等待(listen)进入的连接。
在C/S模式中,如果客户提请了1个连接,守护进程就创建(fork)子进程来响应这个连接,而父进程继续监听其他服务的请求。
但是,对于系统所提供的每1个服务,如果都必须运行1个监听某个端口连接发生的守护程序,那么通常意味着系统资源的浪费。
为此,引入“扩展的网络守护进程服务程序”xinetd(xinetd internet daemon)。telnet服务也是由xinetd守护的。
2。检测telnet、telnet-server的rpm包是否安装
[root@localhost ~]# rpm -qa telnet
telnet-0.17-39.el5
//telnet*.rpm是默认安装的//
[root@localhost root]#rpm -qa telnet-server
空
//telnet*.rpm是默认没有安装的//
3。安装telnet-server
[root@localhost ~]# rpm -qa telnet-server
[root@localhost ~]# rpm -ivh /mnt/Server/telnet-server-0.17-39.el5.i386.rpm
warning: /mnt/Server/telnet-server-0.17-39.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ########################################### [100%]
1:telnet-server ########################################### [100%]
[root@localhost ~]#
4。修改telnet服务配置文件
vi /etc/xinetd.d/telnet
service telnet
{
disable = yes
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
将disable=yes行前加#,或者改为disable=no
5。重新启动xinetd守护进程
由于telnet服务也是由xinetd守护的,所以安装完telnet-server,要启动telnet服务就必须重新启动xinetd
[root@localhost root]#service xinetd restart
或
[root@localhost root]#/etc/init.d/xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
6。关闭系统的防火墙
linux系统默认的防火墙是“high”
命令行界面CLI:
[root@localhost root]# setup
选择:“firewall configuration”
选择:security level——“no firewall”
7。测试
telnet IP地址。
Enterprise Linux Enterprise Linux Server release 5.4 (Carthage)
Kernel 2.6.18-164.el5xen on an i686
login: oracle
Password:
[oracle@localhost ~]$
8。telnet默认开机启动
1)。命令ntsysv
找到telnet,用空格键激活(*)服务
2)。命令chkconfig
chkconfig --add telnet
chkconfig telnet on
或
“主菜单”——“系统设置”——“服务器设置”——“服务”
分享到:
相关推荐
安装telnet服务,开启telnet服务。配置telnet服务。由于telnet服务是由超级服务xinetd来管理的,因此这里启动和停止telnet服务,只需通过修改/etc/xinetd.d/telnet中的disable的值,然后执行xinetd restart即可。
linux下开启telnet服务详细方法介绍
如何开启Linux telnet服务.docx
如何开启Linux的telnet服务开启ftp服务[借鉴].pdf
Arm-Linux下使用的ftp服务和telnet服务
linux 下telnet 服务开启,详细介绍linux 下telnet服务开启方法,以及相关软件包
书法培训班合作协议书(最新版).pdf
。。。
Telnet服务的配置步骤如下: 一、安装telnet软件包(通常要两个)
1、Linux系统的Telnet服务的安装、配置、服务的启动、关闭。 2、配置是否让root帐号可以通过telnet服务登录。
linux设置Ftp和Telnet服务 在安装好Redhat以后,需要设置Ftp和Telnet服务文件,才能启动Ftp和Telnet服务,
linux提供服务是由运行在后台的守护进程daemon来执行的,telnet服务是由xinetd守护的。 RedHat系统: 开启telnet服务: 1、检查telnet是否已经安装。 2、查看telnet服务是否开启, 命令:chkconfig ...
默认的linux就是一个强大的系统,运行了很多的服务。但有许多服务是不需要的,很容易引 起安全风险。这个文件就是/etc/inetd.conf,它制定了/usr/sbin/inetd将要监听的服务,你可能只需要其中的两个: telnet和ftp,...
本文介绍了在Debian Linux操作系统下启动Telnet服务的方法。
用下列命令编译程序: gcc -Wall telnet-server -o telnetd 启动telnet服务: ./telnetd --daemon #以root用户身份在23端口(即telnet默认端口服务) 或 ./telnetd -P 7838 #以非root用户身份
在没有安装telnet服务的机器上,测试目标机器指定端口开通策略
Linux Centos开启telnet和关闭telnet
linux环境下telnet安装包,包含: telnet-client 客户端安装包、telnet-...至于怎么开启telnet服务,去网上搜索下,大把的,我是按照这个的: http://www.cnblogs.com/chenlulouis/archive/2009/08/13/1545305.html
。。。