telnet在很多系统中都有所应用。今天我们就来讲解一下配置RedHat telnet服务的具体操作。由于RedHat AS3/4使用kerberos5认证,默认telnet服务无法行root登录,所以需要重新安裝telnet-server进行配置,具体步骤如下:
配置RedHat telnet服务1、下载安裝telnet-server.
配置RedHat telnet服务2、修改/etc/xinetd.d/telnet ,将disable=yes修改为no,之后将/etc/xinetd.d/krb5-telnet中disable=no修改为yes(让服务重启后,按设定值设置)
- QUOTE:[root@ika xinetd.d]# cat /etc/xinetd.d/telnet
- # default: on
- # description: The telnet server serves telnet sessions; it uses \
- # unencrypted username/password pairs for authentication.
- service telnet
- {
- disable = no
- flags = REUSE
- socket_type = stream
- wait= no
- user= root
- server = /usr/sbin/in.telnetd
- log_on_failure += USERID
- }
配置RedHat telnet服务3、修改/etc/pam.d/login文件,将第二行"auth required pam_securetty.so"注释掉
- QUOTE:[root@ika pam.d]# cat login
- #%PAM-1.0
- #authrequired /lib/security/pam_securetty.so
- auth required /lib/security/pam_stack.so service=system-auth
- auth required /lib/security/pam_nologin.so
- account required /lib/security/pam_stack.so service=system-auth
- password required /lib/security/pam_stack.so service=system-auth
- session required /lib/security/pam_stack.so service=system-auth
- session optional /lib/security/pam_console.so
配置RedHat telnet服务4、修改/etc/securetty文件,添加登录的tty,如pts/0,pts/1,pts/2.......
- QUOTE:[root@RN031 etc]# cat securetty
- pts/0
- pts/1
- pts/2
- vc/1
- vc/2
- vc/3
- vc/4
配置RedHat telnet服务5、重启xinetd:service xinetd restart.
关键词标签:RedHat,telnet
相关阅读
热门文章 安装红帽子RedHat Linux9.0操作系统教程使用screen管理你的远程会话GNU/Linux安装vmware如何登录linux vps图形界面 Linux远程桌面连
人气排行 Linux下获取CPUID、硬盘序列号与MAC地址linux tc实现ip流量限制dmidecode命令查看内存型号linux下解压rar文件安装红帽子RedHat Linux9.0操作系统教程Ubuntu linux 关机、重启、注销 命令lcx.exe、nc.exe、sc.exe入侵中的使用方法查看linux服务器硬盘IO读写负载
查看所有0条评论>>