当前位置:网站首页>Telnet installation and telnet (correct password) cannot log in!
Telnet installation and telnet (correct password) cannot log in!
2022-07-25 19:10:00 【Lfei5120】
telnet Installation and telnet( The password is correct ) Unable to login !
1.telnet download
First in yum Find out whether there are these two installation packages in the source
test login: Connection closed by foreign host.
[[email protected] xinetd.d]# yum list | grep telnet
telnet.x86_64 1:0.17-66.el7 @updates
telnet-server.x86_64 1:0.17-66.el7 @updates
[[email protected] xinetd.d]#
As mentioned above, we found two installation packages
2. install telnet
[[email protected] xinetd.d]# yum -y install telnet
[[email protected] xinetd.d]# yum -y install telnet-server
3.telnet After the installation is successful, we start telnet
because telnet The download is stored in xinetd among , But we start xinetd It is found that there is no dependent package .
[[email protected] xinetd.d]# service xinetd start
Redirecting to /bin/systemctl start xinetd.service
Failed to start xinetd.service: Unit not found.
[[email protected] xinetd.d]#
4. download xinetd, And restart xinetd
[[email protected] xinetd.d]# yum -y install xinetd
[[email protected] xinetd.d]# service xinetd start // Successful launch
Redirecting to /bin/systemctl start xinetd.service
[[email protected] xinetd.d]#
[[email protected] xinetd.d]# ls /etc/xinetd.d/ // But we found no telnet, So we have to create it ourselves
chargen-dgram daytime-dgram discard-dgram echo-dgram tcpmux-server time-dgram
chargen-stream daytime-stream discard-stream echo-stream telnet time-stream
[[email protected] xinetd.d]#
5. establish telnet, And write the text content
Pay attention to is , The first line in this text disable Medium yes To be converted into no
[[email protected] xinetd.d]# cd /etc/xinetd.d/
[[email protected] xinetd.d]# vi telnet
[[email protected] xinetd.d]# cat telnet
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
[[email protected] xinetd.d]#
Check the port number
[[email protected] xinetd.d]# netstat -tnl grep 23 //telnet Default port 23, It has been found below telnet Port number
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 :::23 :::* LISTEN
tcp6 0 0 ::1:25 :::* LISTEN
[[email protected] xinetd.d]#
Here it is telnet The configuration is complete .
6.telnet( The password is correct ) Unable to login
Here we are telnet But if the user password is correct , Still can't log in , Then we can directly ssh Connect in to make configuration changes
[[email protected] ~]# cat /etc/pam.d/login // Notice the second line here auth [... Comment out , Then save to exit
#%PAM-1.0
#auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth substack system-auth
auth include postlogin
account required pam_nologin.so
account include system-auth
password include system-auth
# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session required pam_loginuid.so
session optional pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session required pam_selinux.so open
session required pam_namespace.so
session optional pam_keyinit.so force revoke
session include system-auth
session include postlogin
-session optional pam_ck_connector.so
[[email protected] ~]#
7. restart telnet
[[email protected] ~]# service xinetd restart
Redirecting to /bin/systemctl restart xinetd.service
[[email protected] ~]#
8. add to pts/0 And restart
By default linux All think pts0 Is an insecure connection , So I will refuse , Then I can release pts0, Raffi doesn't introduce too much here , If you want to ask what you think , You can go to /var/log/securre The query inside is the rejected Huo ....
[[email protected] ~]# cat /etc/securetty // Enter this file , Add on last line pts/0
console
vc/1
vc/2
A little .....
pts/0
[[email protected] ~]#
restart xinetd
[[email protected] ~]# service xinetd restart
Redirecting to /bin/systemctl restart xinetd.service
[[email protected] ~]#
After restarting, you can connect again , Enter the user and password to enter !!!
Don't get lost by paying attention , Blog to see Lafite wonderful commentary for you .
边栏推荐
- telnet安装以及telnet(密码正确)无法登录!
- Youfu force supercomputing provides customized high-performance computing services for customers
- 小程序毕设作品之微信校园维修报修小程序毕业设计成品(7)中期检查报告
- srec_cat 常用参数的使用
- 7/24 training log
- MySQL sub query (selected 20 sub query exercises)
- How to create an effective help document?
- Pymoo学习 (8):Gradients
- 怎样设计产品帮助中心?以下几点不可忽视
- ThreadLocal Kills 11 consecutive questions
猜你喜欢

小程序毕设作品之微信校园维修报修小程序毕业设计成品(1)开发概要

Baklib:制作优秀的产品说明手册

小程序毕设作品之微信校园维修报修小程序毕业设计成品(3)后台功能

聊聊接口性能优化的11个小技巧

How to design product help center? The following points cannot be ignored

Fruit chain "siege": it's a journey of sweetness and bitterness next to apples

“未来杯”第二届知识图谱锦标赛正式启动

What is the application value of MES management system

乐理基础 调式

SQL Server 2019 安装教程
随机推荐
李宏毅《机器学习》丨1. Introduction of this course(机器学习介绍)
21 days proficient in typescript-4 - type inference and semantic check
[encryption weekly] has the encryption market recovered? The cold winter has not thawed yet! Check the major events in the encryption market last week!
Hough transform understanding [easy to understand]
The difference between QT exec and show
Pyqt5 click qtableview vertical header to get row data and click cell to get row data
聚智云算,向新而生| 有孚网络“专有云”开启新纪元
浅析IM即时通讯开发出现上网卡顿?网络掉线?
Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
【小程序开发】宿主环境详解
7/24 training log
In the first half of the year, the shipment volume has exceeded that of the whole year of last year, and centritec millimeter wave radar has "captured" the international giant
接口自动化测试平台FasterRunner系列(二)- 功能模块
软件测试(思维导图)
jmeter性能测试实战视频(常用性能测试工具有哪些)
Pymoo学习 (6):终止条件
Detailed explanation of Bluetooth protocol (what is Bluetooth)
Huawei switch system software upgrade and security vulnerability repair tutorial
Pymoo学习 (7):并行化Parallelization
鸿蒙-大喵计算画板-视频