Linux telnet检测rpm包是否安装OS:RedHat9

系统 Linux
但 是,对于Linux telnet所提供的每1个服务,如果都必须运行1个监听某个端口连接发生的守护程序,那么通常意味着系统资源的浪费。为此,引入“扩展的网络守护进程服 务程序”xinetd(xinetd internet daemon)。Linux telnet服务也是由xinetd守护的。

对大家推荐很好使用的Linux telnet系统,像让大家对Linux telnet系统有所了解,然后对Linux telnet系统全面讲解介绍,希望对大家有用今天公司有个同事弄了个Red Hat Enterprise 5装,系统装好后,发现Linux telnet不能用,ssh是可以的。搞了好久,才给搞定,结合以前摘下的关于这方面的资料,参考如下:
 
1。概述

Linux提供服务是由运行在后台的守护程序(daemon)来执行的。守护进程的工作就是打开1个端口(port),等待(listen)进入的连接。在C/S模式中,如果客户提请了1个连接,守护进程就创建(fork)子进程来响应这个连接,而父进程继续监听其他服务的请求。

但 是,对于Linux telnet所提供的每1个服务,如果都必须运行1个监听某个端口连接发生的守护程序,那么通常意味着系统资源的浪费。为此,引入“扩展的网络守护进程服 务程序”xinetd(xinetd internet daemon)。Linux telnet服务也是由xinetd守护的。

2。检测Linux telnet、Linux telnet-server的rpm包是否安装OS:RedHat9

  1. [root@localhost root]#rpm -qa Linux telnet  
  2. Linux telnet-0.17-25  
  3. //Linux telnet*.rpm是默认安装的//  
  4. [root@localhost root]#rpm -qa Linux telnet-server空  
  5. //Linux telnet*.rpm是默认没有安装的// 

3。安装Linux telnet-server

第3张盘上有Linux telnet-server-0.17-25.i386.rpm
[root@localhost root]#rpm -ivh Linux telnet-server*.i386.rpm  --这个软件包依赖于xinet这个包。

4。修改Linux telnet服务配置文件

  1. vi /etc/xinetd.d/Linux telnet   
  2. service Linux telnet  
  3. {  
  4. disable = yes 
  5. flags = REUSE 
  6. socket_type = stream 
  7. wait = no 
  8. user = root 
  9. server = /usr/sbin/in.Linux telnetd  
  10. log_on_failure += USERID  

将disable=yes行前加#,或者改为disable=noPS:安装Linux telnet-server后,系统才有文件/usr/sbin/in.Linux telnetd

5。重新启动xinetd守护进程

由于Linux telnet服务也是由xinetd守护的,所以安装完Linux telnet-server,要启动Linux telnet服务就必须重新启动xinetd[root@localhost root]#service xinetd restart或[root@localhost root]#/etc/init.d/xinetd restart

6。关闭系统的防火墙,

如果不能修改,则先修改下用户认证方式再试试(setup ->  Authentication configuration)
linux系统默认的防火墙是“high”命令行界面CLI:[root@localhost root]# setup选择:“firewall configuration”选择:security level——“no firewall”

7。设置root用户可以Linux telnet主机(生产环境下不建议这样)

# vi /etc/securetty  添加pts/0,要控制root同时Linux telnet数量,就添加多少个pts/x,其中x为0-255-...的数字。示例如下:
# cat /etc/securetty
console
vc/1
vc/2
vc/3
vc/4
vc/5
tty1
tty2
tty3
tty4
tty5
tty6
pts/0
pts/1
pts/2
pts/3

8。测试

  1. c:> Linux telnet IP  
  2. Trying...  
  3. Connected to IP  
  4. Escape character is '^]'.  
  5. Red Hat Enterprise Linux Server release 5 (Tikanga)  
  6. Kernel 2.6.18-8.el5 on an i686  
  7. login:  

9。Linux telnet默认开机启动

1)。命令ntsysv
找到Linux telnet,用空格键激活(*)服务
2)。命令chkconfig
chkconfig --add Linux telnet
chkconfig Linux telnet on
3)。图形用户界面GUI
redhat-conhat-config-services
或“主菜单”——“系统设置”——“服务器设置”——“服务”

PS:由于Linux telnet登陆时是明文传送密码,所以不安全,建议使用ssh(secure shell)替代!windows下一般用F-Secure SSH ,putty SSH

10。Trouble Shooting

(1).我在我机子上输入 Linux telnet 192.168.1.18 (装有Fedora Core 6 系统的机器)dos提示:Unencrypted connection refused.Goodbye.失去了跟主机的连接解决参考:"Unencrypted connection refused,Goodbye"解决办法:因为开启的Linux telnet server为/etc/xinetd.d/ekrb5-Linux telnet所以修改ekrb5-Linux telnet项目disable=yes即可.重启服务service inetd restart即可.

(2).red hat linux enterprise 5 在从别的机上Linux telnet  过去时出现如下错误:(发出命令为: Linux telnet 10.x.x.x)getnameinfo: localhost: SuccessTemporary failure in name resolution: Illegal seek失去了跟主机的连接。

网上说只要在你的red hat linux enterprise 5的host文件中增加Linux telnet客户端的地址,例如10.200.1.130 clientmachine,但是加了也不行,解决参考如下:分析原因是red hat 5的用户认证鉴权方式比较严格,且也不能修改Firewall 的设置,只要把 Authentication configuration 里的一些选项去掉便可。# setup 选择 Authentication configuration 去掉一些认证方式,然后再修改Firewall configuration里设置。

【编辑推荐】

  1. linux telnet服务开启
  2. Linux SkyEye开源软件安装调试功能
  3. Linux wingrub关于系统引导管理器的简单介绍
  4. Linux操作系统配置过程启动服务
  5. Linux Quagga守护进程启动
责任编辑:佚名 来源: csdn
相关推荐

2011-03-21 16:49:53

2010-01-11 10:23:14

linuxrpm包

2018-07-19 09:20:47

LinuxArchLinuxRPM包

2010-02-04 14:06:01

Linux rpm包

2010-07-19 14:46:20

telnet服务

2017-11-21 09:30:06

CentOSRedHatrpm包

2010-03-04 14:34:50

Linux操作系统

2010-01-13 10:02:21

LinuxRPM软件包

2010-07-22 14:13:32

配置RedHat te

2013-11-25 17:08:49

Linux命令RPM选项

2009-12-23 09:43:08

Fedora core

2010-07-21 15:36:27

telnet-serv

2010-09-14 13:55:27

redhat 9 tf

2010-02-22 18:35:01

2010-06-02 13:05:14

Sendmail 安装

2010-02-23 17:47:27

Fedora RPM

2011-05-04 09:11:30

RPM包Linux

2010-03-01 13:18:50

Linux编译

2009-03-21 16:30:40

虚拟化Vmware

2010-01-06 13:00:36

RPM包安装
点赞
收藏

51CTO技术栈公众号