当前位置:网站首页>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 .
边栏推荐
- Up to 5million per person per year! Choose people instead of projects, focus on basic scientific research, and scientists dominate the "new cornerstone" funded by Tencent to start the application
- Can I specify a path in an attribute to map a property in my class to a child property in my JSON?
- Advertising attribution: how to measure the value of buying volume?
- 如何设计 API 接口,实现统一格式返回?
- Flask project uses flask socketio exception: typeerror: function() argument 1 must be code, not str
- Thread和Runnable创建线程的方式对比
- Introduction to namespace Basics
- leetcode 53. Maximum Subarray 最大子数组和(中等)
- R language principal component PCA, factor analysis, clustering analysis of regional economy analysis of Chongqing Economic Indicators
- Organize five stages of actual attack and defense drill
猜你喜欢

九章云极DataCanvas公司获评36氪「最受投资人关注的硬核科技企业」

计数排序基础思路

【愚公系列】2022年7月 Go教学课程 005-变量

Markdown editor

Flex layout and usage

Intel David tuhy: the reason for the success of Intel aoten Technology

Flask project uses flask socketio exception: typeerror: function() argument 1 must be code, not str

【实践出真理】import和require的引入方式真的和网上说的一样吗

JDBC link Oracle reference code

JS also exports Excel
随机推荐
计数排序基础思路
一图看懂!为什么学校教了你Coding但还是不会的原因...
Common methods of list and map
装饰器基础学习02
微信能开小号了,拼多多“砍一刀”被判侵权,字节VR设备出货量全球第二,今日更多大新闻在此
【Android Kotlin协程】利用CoroutineContext实现网络请求失败后重试逻辑
PLC Analog output analog output FB analog2nda (Mitsubishi FX3U)
谈谈讲清楚这件事的重要性
Win11 control panel shortcut key win11 multiple methods to open the control panel
Local tool [Navicat] connects to remote [MySQL] operation
Oracle - views and sequences
Function pointer and pointer function in C language
3GPP信道模型路损基础知识
What if win11 pictures cannot be opened? Repair method of win11 unable to open pictures
Basic idea of counting and sorting
Vscode 如何使用内置浏览器?
九章云极DataCanvas公司摘获「第五届数字金融创新大赛」最高荣誉!
acwing 843. N-queen problem
Oracle -- 视图与序列
Flask项目使用flask-socketio异常:TypeError: function() argument 1 must be code, not str