码迷,mamicode.com
首页 > 其他好文 > 详细

Authentication or permission failure

时间:2018-12-16 18:45:04      阅读:311      评论:0      收藏:0      [点我收藏+]

标签:mkdir   amp   容器   failed   case   pen   rsa   使用   key   

容器里使用ansible 项目报错

PLAY [bootstrap installer] ****

GATHERING FACTS ***
fatal: [localhost] => Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the remote directory. Consider changing the remote temp path in ansible.cfg to a path rooted in "/tmp". Failed command was: mkdir -p $HOME/.ansible/tmp/ansible-tmp-1403661775.03-87881370436819 && echo $HOME/.ansible/tmp/ansible-tmp-14036534175.03-87881370436819, exited with result 127

处理方法:

#yum -y install openssh-clients

Ansible正在容器中运行,试图连接到容器,因此您需要同时授权容器和root用户.容器必须是已知主机,并且必须授权root的公钥.例如:
RUN ssh-keyscan -t rsa 127.0.0.1 >>/root/.ssh/known_hosts
RUN cat /root/.ssh/id_rsa.pub >>/root/.ssh/authorized_keys

Authentication or permission failure

标签:mkdir   amp   容器   failed   case   pen   rsa   使用   key   

原文地址:http://blog.51cto.com/shunzi115/2331155

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!