当前位置:网站首页>Ansible reports an error: "MSG": "invalid/incorrect password: permission denied, please try again“
Ansible reports an error: "MSG": "invalid/incorrect password: permission denied, please try again“
2022-07-07 04:57:00 【Steve lu】
I'm doing it these days Ansible The experiment of , Make host variables , The user name and ssh password , Valid only if key pair authentication is not used
error
#Ansible The management end
[[email protected] ansible]# vim hosts
[dbservers]
192.168.109.134 ansible_port=2222 ansible_user=root ansible_password=000000
# Controlled end
[[email protected] ~]# cat /etc/ssh/sshd_config |grep Port
Port 2222
[[email protected] ansible]# ansible 192.168.109.134 -a 'date'
192.168.109.134 | UNREACHABLE! => {
"changed": false,
"msg": "Invalid/incorrect password: Permission denied, please try again.",
"unreachable": true
}
Prompt error , I'm surprised. , I thought it was a port problem , I changed it to default 22 port , It's the same mistake , The error message is said to be a password problem , I'll examine it carefully , The code is 000000 No problem , So I went online to check the problem , Got a very incredible answer , The beginning of the password is 0 You're going to report a mistake , So I went to try , Change to 123456 It was really successful .
success
#Ansible End
[[email protected] ansible]# vim hosts
[lhq]
192.168.109.134 ansible_port=2222 ansible_user=root ansible_password=123123
# Managed end
[[email protected] ~]# passwd
Change user root Password .
new password :
Invalid password : The password is less than 8 Characters
Reenter the new password :
passwd: All authentication tokens have been successfully updated .
Modified into 123123
[[email protected] ansible]# ansible lhq -a 'date'
192.168.109.134 | CHANGED | rc=0 >>
2022 year 07 month 06 Japan Wednesday 16:16:13 CST
After changing the password, it really succeeded , Is it true that the password starts with 0 Why , I'll try another password .
Other test conditions
because 131-133 I have done key pair verification before , So I'll restore the snapshot first
#Ansible The management end
[[email protected] ansible]# vim hosts
[webservers]
192.168.109.131 ansible_user=root ansible_password=000000
192.168.109.132 ansible_user=root ansible_password=012345
192.168.109.133 ansible_user=root ansible_password=123123
192.168.109.134 ansible_user=root ansible_password=101111
# Then go to each host to change the password
[[email protected] ansible]# ansible webservers -a 'date'
192.168.109.134 | CHANGED | rc=0 >>
2022 year 07 month 06 Japan Wednesday 16:55:01 CST
192.168.109.133 | CHANGED | rc=0 >>
2022 year 07 month 06 Japan Wednesday 16:55:01 CST
192.168.109.131 | UNREACHABLE! => {
"changed": false,
"msg": "Invalid/incorrect password: Permission denied, please try again.",
"unreachable": true
}
192.168.109.132 | UNREACHABLE! => {
"changed": false,
"msg": "Invalid/incorrect password: Permission denied, please try again.",
"unreachable": true
}
[[email protected] ansible]# ansible webservers -m ping -o
192.168.109.134 | SUCCESS => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "changed": false, "ping": "pong"}
192.168.109.133 | SUCCESS => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "changed": false, "ping": "pong"}
192.168.109.131 | UNREACHABLE!: Invalid/incorrect password: Permission denied, please try again.
192.168.109.132 | UNREACHABLE!: Invalid/incorrect password: Permission denied, please try again.
131 and 132 There is something wrong with the machine , Their password is 0 start
Sure enough, as the brother on the Internet said ,,0-9 In the number of, just start with 0 The host password of will cause this error , No problem with other figures .
边栏推荐
- Flask project uses flask socketio exception: typeerror: function() argument 1 must be code, not str
- Thesis landing strategy | how to get started quickly in academic thesis writing
- 抖音或将推出独立种草社区平台:会不会成为第二个小红书
- 每人每年最高500万经费!选人不选项目,专注基础科研,科学家主导腾讯出资的「新基石」启动申报
- 01机器学习相关规定
- 什么是Web3
- Time complexity & space complexity
- Station B boss used my world to create convolutional neural network, Lecun forwarding! Burst the liver for 6 months, playing more than one million
- Tree map: tree view - draw covid-19 array diagram
- STM32 encapsulates the one key configuration function of esp8266: realize the switching between AP mode and sta mode, and the creation of server and client
猜你喜欢
[line segment tree practice] recent requests + area and retrieval - array modifiable + my schedule I / III
九章云极DataCanvas公司蝉联中国机器学习平台市场TOP 3
[Android kotlin collaboration] use coroutinecontext to realize the retry logic after a network request fails
Depth first traversal template principle of tree and graph
Chapter 9 Yunji datacanvas company has been ranked top 3 in China's machine learning platform market
A line of R code draws the population pyramid
How to open win11 remote desktop connection? Five methods of win11 Remote Desktop Connection
Introduction to namespace Basics
mpf2_ Linear programming_ CAPM_ sharpe_ Arbitrage Pricin_ Inversion Gauss Jordan_ Statsmodel_ Pulp_ pLU_ Cholesky_ QR_ Jacobi
MySQL数据库(基础篇)
随机推荐
Flex layout and usage
Local tool [Navicat] connects to remote [MySQL] operation
九章云极DataCanvas公司获评36氪「最受投资人关注的硬核科技企业」
全国气象数据/降雨量分布数据/太阳辐射数据/NPP净初级生产力数据/植被覆盖度数据
Camera calibration (I): robot hand eye calibration
A row of code r shows the table of Cox regression model
System framework of PureMVC
微信能开小号了,拼多多“砍一刀”被判侵权,字节VR设备出货量全球第二,今日更多大新闻在此
Appium practice | make the test faster, more stable and more reliable (I): slice test
R descriptive statistics and hypothesis testing
How does vscade use the built-in browser?
广告归因:买量如何做价值衡量?
A picture to understand! Why did the school teach you coding but still not
What is JVM? What are the purposes of JVM tuning?
赠票速抢|行业大咖纵论软件的质量与效能 QECon大会来啦
Stm32f103ze+sht30 detection of ambient temperature and humidity (IIC simulation sequence)
STM32F103 realize IAP online upgrade application
JS variable case
Markdown editor
Field data acquisition and edge calculation scheme of CNC machine tools