s sh -copy-id Разрешение отклонено И ansible все -m ping Недоступен - PullRequest
0 голосов
/ 08 марта 2020
[ansible@ip-172-31-93-205 ~]$ ssh-copy-id 172.31.81.164
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/ansible/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
ansible@172.31.81.164's password:
Permission denied, please try again.
ansible@172.31.81.164's password:

[ansible@ip-172-31-93-205 ~]$ ansible all -m ping
172.31.81.164 | UNREACHABLE! => {
    "changed": false,
    "msg": "Failed to connect to the host via ssh: ansible@172.31.81.164: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).",
    "unreachable": true
}

Я изменил PasswordAuthentication NO на YES, но все равно не работает

...