ImageVerifierCode 换一换
格式:DOCX , 页数:10 ,大小:17.47KB ,
资源ID:16163647      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/16163647.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(在RHEL5中开通Root远程登录详解Word文档格式.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

在RHEL5中开通Root远程登录详解Word文档格式.docx

1、当然这个文档比较适合初学者,比如我。同时此文档仅能抛砖引玉,对于其他的linux系统如Ubuntu等还是有一些区别。各位在使用中加以考量,鄙人在逐渐学习linux的过程中,不断的体会到每个文件与系统的整合,思考他们运作的方式。一直在寻找这样一本能够直观的如神经脉络一样谱写出linxu系统的书籍。不断寻找中,理解才是永恒。-telnet:提供telnet服务,使用未加密的用户/密码组进行验证,依附于xinetd服务。文件位于/etc/xinetd.d/telnet。krb5-telnet:提供telnet服务,允许普通的telnet登陆,默认是不允许root用户登录,使用kerberos5验证

2、,依附于xinetd服务。文件位于/etc/xinetd.d/krb5-telnet。ekrb5-telnet:提供加密的telnet服务,但是必须要ekrb5的加密服务器。文件位于/etc/xinetd.d/ekrb5-telnet。xinetd:因特网操作服务程序。提供类似于inetd+tcp_wrapper的功能,但是更加强大和安全,监控网络对各种它管理的服务的需求,并在要的时候启动相应的服务程序。文件位于/etc/xinetd.d中1、查看telnet rpm包rootrhel52 /# rpm -qa | grep telnettelnet-0.17-38.el5 telnet-se

3、rver-0.17-38.el5 =RHEL5CD#4rootrhel52 /# 2、安装telnet server rpm包rootrhel52 work# rpm -ivh telnet-server-0.17-38.el5.i386.rpmwarning: telnet-server-0.17-38.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186Preparing. # 100% package telnet-server-0.17-38.el5 is already installedrootrhel52 wo

4、rk# 注:安装完毕以后会在/etc/xinetd.d/中出现一个telnet配置文件1、查看telnet服务rootrhel52 /# chkconfig -list | grep telnet ekrb5-telnet: off krb5-telnet: telnet:rootrhel52 /#2、开启telnet服务rootrhel52 /# chkconfig telnet on也可以用rootrhel52 /# ntsysv开启3、设置自动启动rootrhel52 /# chkconfig -level 35 telnet on on1、配置telnet文件rootrhel52 /#

5、 vim /etc/xinetd.d/telnet# default:# description: The telnet server serves telnet sessions; it uses # unencrypted username/password pairs for authentication.service telnet disable = no =确认是no flags = REUSE socket_type = stream wait = no user = root server = /usr/sbin/in.telnetd log_on_failure += USE

6、RID2、注意/etc/xinetd.d/ekrb5-telnet 和 krb5-telnet两个文件中的disable,稍后说明其作用。1、确认/etc/pam.d/login中的pam_securetty.so行,并将其注释掉#rootrhel52 /# vim /etc/pam.d/login#%PAM-1.0#auth user_unknown=ignore success=ok ignore=ignore default=bad pam_securetty.soauth include system-authaccount required pam_nologin.soaccount

7、 include system-authpassword include system-auth# pam_selinux.so close should be the first session rulesession required pam_selinux.so closesession include system-authsession required pam_loginuid.sosession optional pam_console.so# pam_selinux.so open should only be followed by sessions to be execut

8、ed in theuser contextsession required pam_selinux.so opensession optional pam_keyinit.so force revoke2、开通telnet控制台,在/etc/securetty文件中设定rootrhel52 /# vim /etc/securettyconsolevc/1vc/2vc/3tty1tty2tty3tty4tty5.pts/1pts/2pts/3pts/4pts/5在文件后面追加pts/1.pts/n因为telnet服务是由xinetd调用,所以只要重新启动xinetd即可rootrhel52 /#

9、 service xinetd restartStopping xinetd: OK Starting xinetd:Microsoft Windows 版本 6.1.7100版权所有 (c) 2009 Microsoft Corporation。保留所有权利。C:telnet 192.168.238.220正在连接192.168.238.220.Red Hat Enterprise Linux Server release 5 (Tikanga)Kernel 2.6.18-8.el5 on an i686login: rootPassword:Last login: Sat Aug 1 22

10、:47:15 from 192.168.238.1rootrhel52 #设定配置文件/etc/servicesrootCentOS5 /#vi /etc/services找到下面的两行:telnet 23/tcptelnet 23/udp设定配置文件/etc/xinetd.d/telnet access_time = 20:00-24:00 disable = no only_from = 192.168.0.0/16#bind = 192.168.0.100#only_from = 192.168.0.0/24#no_access = 192.168.0.80,90#access_time

11、s = 8:00-9:00 20:00-23:文件所在位置 /etc/xinetd.d/krb5-telnet其实rhel5已经装了krb5-telnet,那么就可以启用这个服务来达到开启telnet的目的。不用再安装telnet-server这个软件包了。可以使用Kerberos 5来进行认证。1、开启krb5-telnet服务。rootrhel52 /# vim /etc/xinetd.d/krb5-telnet将“disable = yes” 改为“disable = no”2、启动服务文件所在位置 /etc/xinetd.d/ekrb5-telnetekrb5- telnet可以用来提供加密的telnet服务。如果启用了ekrb5-telnet服务,但是又没有Kerberos服务器的话,那么在进行 telnet登录时,总是会报“Unencrypted connection refused. Goodbye.(未加密的连接,拒绝服务)”这个错误。1、开启ekrb5-telnet服务。rootrhel52 /# vim /etc/xinetd.d/ekrb5-telnet将“disable = ye

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1