大佬教程收集整理的这篇文章主要介绍了Telnet远程root登录CentOS,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
CentOS版本:CentOS Linux release 7.6.1810 (CorE)
安装Telnet
yum install -y telnet-server
安装xinetd
yum install -y xinetd
启动服务
systemctl start xinetd.service
systemctl start telnet.socket
查看服务状态
systemctl status xinetd.service
systemctl status telnet.socket
修改安全文件,运行root登录
vim /etc/securetty
# 末尾追加下面两行
pts/0
pts/1
关闭防火墙和selinux
systemctl stop firewalld
setenforce 0
修改telnet权限,保障远程telnet可以使用root用户登录
[root@ct1 ~]# cat /etc/pam.d/remote
#%PAM-1.0
#auth required pam_securetty.so # 注释这一行
修改telnet参数,保障客户端可以正常telnet到服务器
# 如果没有这个文件,新建文件写入内容。
[root@ct1 ~]# cat /etc/xinetd.d/telnet
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = no
}
重启xinetd
systemctl restart xinetd
用其它机器进行Telnet远程登录
以上是大佬教程为你收集整理的Telnet远程root登录CentOS全部内容,希望文章能够帮你解决Telnet远程root登录CentOS所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。