由于cisco的密码错误,无法使用ansible登录ssh

由于cisco的密码错误,无法使用ansible登录ssh,ansible,debian,cisco,Ansible,Debian,Cisco,因此,我尝试使用Ansible在Debian OS中自动化cisco配置,问题是当我尝试使用以下工具测试playbook的连接和命令时: ansible student1 -m raw -a "show version | include IOS" 我得到这个错误: fatal: [r1]: UNREACHABLE! => changed=false msg: 'Failed to connect to the host via ssh: Unable to n

因此,我尝试使用Ansible在Debian OS中自动化cisco配置,问题是当我尝试使用以下工具测试playbook的连接和命令时:

ansible student1 -m raw -a  "show version | include IOS"
我得到这个错误:

fatal: [r1]: UNREACHABLE! => changed=false
  msg: 'Failed to connect to the host via ssh: Unable to negotiate with 10.30.1.231 port 2201: no matching cipher found. Their offer: aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc'
  unreachable: true
有没有办法把密码传给Ansible?当使用SSH连接时,我总是使用
-c aes128 cbc
,并且总是有效,但我不知道Ansible如何在SSH中处理密码。我的设备在cisco上,它的版本不存在pubkey chain,它也不是我的。有什么建议吗

有没有办法把密码传给Ansible

有多个选项可用

用于使用add
--ssh额外参数-c aes128 cbc

要使用

/etc/ansible/ansible.cfg
文件中,设置:

[ssh\u连接]
-C-o ControlMaster=auto-o ControlPersist=60s-C aes128 cbc