prompt for "SSH pasword"

57 views
Skip to first unread message

norricorp

unread,
Jun 16, 2016, 9:01:23 AM6/16/16
to Ansible Project
Hi,
very new to Ansible, working through books
On my ansible server (a centos 7 machine) I have added root ssh key to my test machine. So I can ssh root@mint-test and that works.
When, as root, I run my playbook, I am prompted "SSH password:". At this point I can enter anything - just enter or the wrong password or even the right password. And then ansible runs the playbook and all works as expected.
In the ansible cfg file, ask_pass is commented out. But even if I set it to False, still get problem.
What am I doing wrong?
Regards,
John

Adam Morris

unread,
Jun 16, 2016, 10:13:32 PM6/16/16
to Ansible Project
What command are you using to run ansible?

I have a root ssh key shared out...
ssh client
works without a password, as does
ansible-playbook site.yml -l client

If one works and the other doesn't I would be curious about what your command is...

norricorp

unread,
Jun 20, 2016, 1:20:36 AM6/20/16
to Ansible Project

Hi Adam,

I have realised my dumb mistake. I was blindly following from a book which used the -k option which is --ask-pass and that is exactly what I did. Running it without the -k then no password request. Interesting though that it ignored whatever I typed.
But many thanks for the reply, great to know that people are willing to help on the forum and that it is active.
Regards,
john

Adam Morris

unread,
Jun 20, 2016, 9:27:07 AM6/20/16
to ansible...@googlegroups.com

No Problem, that was why I asked what command you had been using...  Yes this forum is very active.

--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/tZ_mTEBwC-Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4d2cdb6c-def5-4c84-8191-8bdcf7a815ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages