文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Linux telnet检测rpm包是否安装OS

Linux telnet检测rpm包是否安装OS

时间:2010-09-21  来源:mydear

对大家推荐很好使用的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
  11. }

将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里设置。


相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载