【问题标题】:Ansible/pfSense: "SSH encountered an unknown error during the connection"Ansible/pfSense:“SSH 在连接过程中遇到未知错误”
【发布时间】:2016-03-31 09:31:23
【问题描述】:

我无法通过运行通过 Ansible ping 运行 pfsense 的虚拟框 (vb):

ansible pfsense -i hosts -m ping

给出: "msg": "SSH 在连接过程中遇到未知错误。

我可以毫无问题地对 vb 进行 ssh,我使用密钥身份验证来执行此操作,因此不需要密码。 我的主机文件:

[all]

pfsense ansible_host=172.18.4.1 ansible_user=admin

我还在 pfsense 控制台上安装了 python 以允许 Ansible 在客户端上运行。知道有什么问题吗?谢谢

【问题讨论】:

    标签: ansible pfsense


    【解决方案1】:

    只要发现 ansible_user 应该设置为 root。于是我把hosts文件改成:

    [all]
    pfsense ansible_host=172.18.4.1 ansible_user=root
    

    这对我有用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-20
      • 2021-02-19
      • 2020-07-27
      • 1970-01-01
      • 2017-08-30
      • 2017-08-08
      相关资源
      最近更新 更多