[GH-ISSUE #14] incompatible ssh peer in asa_command module in Ansible 2.9 #7

Closed
opened 2026-02-27 15:45:57 +03:00 by kerem · 5 comments
Owner

Originally created by @badjaoX on GitHub (Mar 23, 2020).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/14

Hi,

Need assistance regarding error on ssh. Incompatible ssh peer (no acceptable kex algorithm).

Appreciate your response. Thank you.

Details:
The full traceback is:
Traceback (most recent call last):
File "/.ansible/tmp/ansible-local-/ansible-tmp-1584690763.67-219997475427451/AnsiballZ_asa_command.py", line 102, in
_ansiballz_main()
File "/.ansible/tmp/ansible-local-/ansible-tmp-1584690763.67-219997475427451/AnsiballZ_asa_command.py", line 94, in ansiba llz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/.ansible/tmp/ansible-local-/ansible-tmp-1584690763.67-219997475427451/AnsiballZ_asa_command.py", line 40, in invoke
module
runpy.run_module(mod_name='ansible.modules.network.asa.asa_command', init_globals=None, run_name='main', alter_sys=True)
File "/usr/lib64/python2.7/runpy.py", line 176, in run_module
fname, loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code
mod_name, mod_fname, mod_loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip/ansible/modules/network/asa/asa_command.py", line 186, in
File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip/ansible/modules/network/asa/asa_command.py", line 156, in mai n
File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip/ansible/module_utils/network/asa/asa.py", line 125, in run_co mmands
File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip/ansible/module_utils/connection.py", line 185, in rpc
ansible.module_utils.connection.ConnectionError: Incompatible ssh peer (no acceptable kex algorithm)

fatal: [ios01]: FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File "/.ansible/tmp/ansible-local-/ansible-tmp-1584690763.67-219 997475427451/AnsiballZ_asa_command.py", line 102, in \n _ansiballz_main()\n File "/.ansible/tmp/ansible-local-/ ansible-tmp-1584690763.67-219997475427451/AnsiballZ_asa_command.py", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, A NSIBALLZ_PARAMS)\n File "/.ansible/tmp/ansible-local-/ansible-tmp-1584690763.67-219997475427451/AnsiballZ_asa_command.py", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.network.asa.asa_command', init_globals=None, run_name='main', alter_sys=True)\n File "/usr/lib64/python2.7/runpy.py", line 176, in run_module\n fname, loader, pkg_name)\n File "/usr/lib64/python2 .7/runpy.py", line 82, in _run_module_code\n mod_name, mod_fname, mod_loader, pkg_name)\n File "/usr/lib64/python2.7/runpy.py", line 7 2, in _run_code\n exec code in run_globals\n File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip/ansible/modul es/network/asa/asa_command.py", line 186, in \n File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip/ansi ble/modules/network/asa/asa_command.py", line 156, in main\n File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip /ansible/module_utils/network/asa/asa.py", line 125, in run_commands\n File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_p ayload.zip/ansible/module_utils/connection.py", line 185, in rpc\nansible.module_utils.connection.ConnectionError: Incompatible ssh peer (no acceptable kex algorithm)\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}

Originally created by @badjaoX on GitHub (Mar 23, 2020). Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/14 Hi, Need assistance regarding error on ssh. Incompatible ssh peer (no acceptable kex algorithm). Appreciate your response. Thank you. Details: The full traceback is: Traceback (most recent call last): File "/.ansible/tmp/ansible-local-/ansible-tmp-1584690763.67-219997475427451/AnsiballZ_asa_command.py", line 102, in <modul e> _ansiballz_main() File "/.ansible/tmp/ansible-local-/ansible-tmp-1584690763.67-219997475427451/AnsiballZ_asa_command.py", line 94, in _ansiba llz_main invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS) File "/.ansible/tmp/ansible-local-/ansible-tmp-1584690763.67-219997475427451/AnsiballZ_asa_command.py", line 40, in invoke_ module runpy.run_module(mod_name='ansible.modules.network.asa.asa_command', init_globals=None, run_name='__main__', alter_sys=True) File "/usr/lib64/python2.7/runpy.py", line 176, in run_module fname, loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code mod_name, mod_fname, mod_loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip/ansible/modules/network/asa/asa_command.py", line 186, in <mo dule> File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip/ansible/modules/network/asa/asa_command.py", line 156, in mai n File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip/ansible/module_utils/network/asa/asa.py", line 125, in run_co mmands File "/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip/ansible/module_utils/connection.py", line 185, in __rpc__ ansible.module_utils.connection.ConnectionError: Incompatible ssh peer (no acceptable kex algorithm) fatal: [ios01]: FAILED! => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/.ansible/tmp/ansible-local-/ansible-tmp-1584690763.67-219 997475427451/AnsiballZ_asa_command.py\", line 102, in <module>\n _ansiballz_main()\n File \"/.ansible/tmp/ansible-local-/ ansible-tmp-1584690763.67-219997475427451/AnsiballZ_asa_command.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, A NSIBALLZ_PARAMS)\n File \"/.ansible/tmp/ansible-local-/ansible-tmp-1584690763.67-219997475427451/AnsiballZ_asa_command.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.network.asa.asa_command', init_globals=None, run_name='__main__', alter_sys=True)\n File \"/usr/lib64/python2.7/runpy.py\", line 176, in run_module\n fname, loader, pkg_name)\n File \"/usr/lib64/python2 .7/runpy.py\", line 82, in _run_module_code\n mod_name, mod_fname, mod_loader, pkg_name)\n File \"/usr/lib64/python2.7/runpy.py\", line 7 2, in _run_code\n exec code in run_globals\n File \"/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip/ansible/modul es/network/asa/asa_command.py\", line 186, in <module>\n File \"/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip/ansi ble/modules/network/asa/asa_command.py\", line 156, in main\n File \"/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_payload.zip /ansible/module_utils/network/asa/asa.py\", line 125, in run_commands\n File \"/tmp/ansible_asa_command_payload_K0V1WV/ansible_asa_command_p ayload.zip/ansible/module_utils/connection.py\", line 185, in __rpc__\nansible.module_utils.connection.ConnectionError: Incompatible ssh peer (no acceptable kex algorithm)\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1 }
kerem closed this issue 2026-02-27 15:45:57 +03:00
Author
Owner

@morph027 commented on GitHub (Mar 23, 2020):

Hi! Proxmoxer is using https://github.com/paramiko/paramiko for ssh connections. I guess, the problem is raised in this module.

Which versions of proxmoxer and paramiko are you using?

<!-- gh-comment-id:602423958 --> @morph027 commented on GitHub (Mar 23, 2020): Hi! Proxmoxer is using https://github.com/paramiko/paramiko for ssh connections. I guess, the problem is raised in this module. Which versions of proxmoxer and paramiko are you using?
Author
Owner

@badjaoX commented on GitHub (Mar 23, 2020):

Hi,

Thanks fro prompt response.

I am using paramiko version 2.1.1, but not user the issue is on paramiko since the module stated as connection.py.

Can help on how to force to use kexalgorithm?

Kind Regards,

Michael


From: morph027 notifications@github.com
Sent: Monday, 23 March 2020 3:13 PM
To: proxmoxer/proxmoxer proxmoxer@noreply.github.com
Cc: badjaoX Mhike_minguez@hotmail.com; Author author@noreply.github.com
Subject: Re: [proxmoxer/proxmoxer] incompatible ssh peer in asa_command module in Ansible 2.9 (#14)

Hi! Proxmoxer is using https://github.com/paramiko/paramiko for ssh connections. I guess, the problem is raised in this module.

Which versions of proxmoxer and paramiko are you using?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/proxmoxer/proxmoxer/issues/14#issuecomment-602423958, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANABRIHSZUASLV4HOBZNSUDRI4DYLANCNFSM4LRTOIRQ.

<!-- gh-comment-id:602512889 --> @badjaoX commented on GitHub (Mar 23, 2020): Hi, Thanks fro prompt response. I am using paramiko version 2.1.1, but not user the issue is on paramiko since the module stated as connection.py. Can help on how to force to use kexalgorithm? Kind Regards, Michael ________________________________ From: morph027 <notifications@github.com> Sent: Monday, 23 March 2020 3:13 PM To: proxmoxer/proxmoxer <proxmoxer@noreply.github.com> Cc: badjaoX <Mhike_minguez@hotmail.com>; Author <author@noreply.github.com> Subject: Re: [proxmoxer/proxmoxer] incompatible ssh peer in asa_command module in Ansible 2.9 (#14) Hi! Proxmoxer is using https://github.com/paramiko/paramiko for ssh connections. I guess, the problem is raised in this module. Which versions of proxmoxer and paramiko are you using? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub<https://github.com/proxmoxer/proxmoxer/issues/14#issuecomment-602423958>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANABRIHSZUASLV4HOBZNSUDRI4DYLANCNFSM4LRTOIRQ>.
Author
Owner

@morph027 commented on GitHub (Mar 23, 2020):

Can you show me an example playbook?

<!-- gh-comment-id:602533988 --> @morph027 commented on GitHub (Mar 23, 2020): Can you show me an example playbook?
Author
Owner

@badjaoX commented on GitHub (Mar 23, 2020):

Hi,

Here is the sample play.

For Network CLI

  • hosts: ASA1
    connection: network_cli
    vars:
    cli:
    host: "{{ inventory_hostname }}"
    username: "{{ username }}"
    password: "{{ password }}"
    authorize: yes

    tasks:

    • name: Dispaly Certificate
      cli_command:
      command: show run | i crypto

For ASA command

  • hosts: ASA1
    connection: local
    vars:
    cli:
    host: "{{ inventory_hostname }}"
    username: "{{ username }}"
    password: "{{ password }}"
    authorize: yes

    tasks:

    • name: Dispaly Certificate
      asa_command:
      commands: show run | i crypto
      provider: cli

From: morph027 notifications@github.com
Sent: Monday, 23 March 2020 7:24 PM
To: proxmoxer/proxmoxer proxmoxer@noreply.github.com
Cc: badjaoX Mhike_minguez@hotmail.com; Author author@noreply.github.com
Subject: Re: [proxmoxer/proxmoxer] incompatible ssh peer in asa_command module in Ansible 2.9 (#14)

Can you show me an example playbook?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/proxmoxer/proxmoxer/issues/14#issuecomment-602533988, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANABRIE32CLJEUUU6KX536TRI5BHPANCNFSM4LRTOIRQ.

<!-- gh-comment-id:602551061 --> @badjaoX commented on GitHub (Mar 23, 2020): Hi, Here is the sample play. For Network CLI --- - hosts: ASA1 connection: network_cli vars: cli: host: "{{ inventory_hostname }}" username: "{{ username }}" password: "{{ password }}" authorize: yes tasks: - name: Dispaly Certificate cli_command: command: show run | i crypto For ASA command --- - hosts: ASA1 connection: local vars: cli: host: "{{ inventory_hostname }}" username: "{{ username }}" password: "{{ password }}" authorize: yes tasks: - name: Dispaly Certificate asa_command: commands: show run | i crypto provider: cli ________________________________ From: morph027 <notifications@github.com> Sent: Monday, 23 March 2020 7:24 PM To: proxmoxer/proxmoxer <proxmoxer@noreply.github.com> Cc: badjaoX <Mhike_minguez@hotmail.com>; Author <author@noreply.github.com> Subject: Re: [proxmoxer/proxmoxer] incompatible ssh peer in asa_command module in Ansible 2.9 (#14) Can you show me an example playbook? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub<https://github.com/proxmoxer/proxmoxer/issues/14#issuecomment-602533988>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANABRIE32CLJEUUU6KX536TRI5BHPANCNFSM4LRTOIRQ>.
Author
Owner

@morph027 commented on GitHub (Mar 24, 2020):

Hm, i'm confused, this does not look like something related to proxmoxer module, i see asa_command only. This repo is for the proxmoxer requirement in proxmox module only.

<!-- gh-comment-id:603446998 --> @morph027 commented on GitHub (Mar 24, 2020): Hm, i'm confused, this does not look like something related to proxmoxer module, i see `asa_command` only. This repo is for the proxmoxer requirement in [proxmox module](https://docs.ansible.com/ansible/latest/modules/proxmox_module.html) only.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmoxer#7
No description provided.