You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to execute the module 'cisco.nxos.nxos_command' the below error is caught no matter what I attempt to tweak
"changed": false,
"module_stderr": "ssh connection failed: Failed to authenticate public key: Access denied for 'keyboard interactive'. Authentication that can continue: publickey,password,keyboard-interactive",
"module_stdout": "",
"msg": "MODULE FAILURE: No start of json char found\nSee stdout/stderr for the exact error"
This playbook shown is only a snippit of a larger one that was created to on-schedule execute MDS backups to a dedicated FTP server and scheduled via Rundeck (this is reproducable VIA rundeck OR this one-off playbook that I've moved to a basic deployment of Ansible-Core to troubleshoot)
It was running faultlessly for over a year, it began failing last week.
The uptime on the MDS is a frightful 532 days -- There was no update performed here.
It to connect and execute the command, allowing the FTP to complete.
ACTUAL RESULTS
From the specific play
task path: /mnt/AppRepo/ansible/storage/playbooks/cisco/mds/generic/mds_switch_backups.yml:25
redirecting (type: connection) ansible.builtin.network_cli to ansible.netcommon.network_cli
Loading collection ansible.netcommon from /mnt/AppRepo/ansible/collections/ansible_collections/ansible/netcommon
Loading collection ansible.utils from /mnt/AppRepo/ansible/collections/ansible_collections/ansible/utils
redirecting (type: terminal) ansible.builtin.nxos to cisco.nxos.nxos
redirecting (type: cliconf) ansible.builtin.nxos to cisco.nxos.nxos
<sansw01.columbuschildrens.net> Using network group action cisco.nxos.nxos for cisco.nxos.nxos_command
<sansw01.columbuschildrens.net> attempting to start connection
<sansw01.columbuschildrens.net> using connection plugin ansible.netcommon.network_cli
<sansw01.columbuschildrens.net> local domain socket does not exist, starting it
<sansw01.columbuschildrens.net> control socket path is /home/jal/.ansible/pc/e0d81fac40
<sansw01.columbuschildrens.net> Loading collection ansible.builtin from
<sansw01.columbuschildrens.net> redirecting (type: connection) ansible.builtin.network_cli to ansible.netcommon.network_cli
<sansw01.columbuschildrens.net> Loading collection ansible.netcommon from /mnt/AppRepo/ansible/collections/ansible_collections/ansible/netcommon
<sansw01.columbuschildrens.net> Loading collection ansible.utils from /mnt/AppRepo/ansible/collections/ansible_collections/ansible/utils
<sansw01.columbuschildrens.net> redirecting (type: terminal) ansible.builtin.nxos to cisco.nxos.nxos
<sansw01.columbuschildrens.net> Loading collection cisco.nxos from /mnt/AppRepo/ansible/collections/ansible_collections/cisco/nxos
<sansw01.columbuschildrens.net> redirecting (type: cliconf) ansible.builtin.nxos to cisco.nxos.nxos
<sansw01.columbuschildrens.net> local domain socket listeners started successfully
<sansw01.columbuschildrens.net> loaded cliconf plugin ansible_collections.cisco.nxos.plugins.cliconf.nxos from path /mnt/AppRepo/ansible/collections/ansible_collections/cisco/nxos/plugins/cliconf/nxos.py for network_os nxos
<sansw01.columbuschildrens.net> ssh type is set to auto
<sansw01.columbuschildrens.net> autodetecting ssh_type
<sansw01.columbuschildrens.net> ssh type is now set to libssh
<sansw01.columbuschildrens.net> Loading collection ansible.builtin from
<sansw01.columbuschildrens.net> local domain socket path is /home/jal/.ansible/pc/e0d81fac40
<sansw01.columbuschildrens.net> ANSIBLE_NETWORK_IMPORT_MODULES: enabled
<sansw01.columbuschildrens.net> ANSIBLE_NETWORK_IMPORT_MODULES: found cisco.nxos.nxos_command at /mnt/AppRepo/ansible/collections/ansible_collections/cisco/nxos/plugins/modules/nxos_command.py
<sansw01.columbuschildrens.net> ANSIBLE_NETWORK_IMPORT_MODULES: running cisco.nxos.nxos_command
<sansw01.columbuschildrens.net> ANSIBLE_NETWORK_IMPORT_MODULES: complete
fatal: [sansw01.columbuschildrens.net]: FAILED! => {
"changed": false,
"module_stderr": "ssh connection failed: Failed to authenticate public key: Access denied for 'keyboard interactive'. Authentication that can continue: publickey,password,keyboard-interactive",
"module_stdout": "",
"msg": "MODULE FAILURE: No start of json char found\nSee stdout/stderr for the exact error"
}
The text was updated successfully, but these errors were encountered:
I also startd facing same issue when trying to connect to IOS-XE device. I thinks its not related with NXOS or IOS-XE may be something else. My code also working fine previously.
When i try to connect devices manually (ssh [email protected]) from same ansible server it connects without any issue but when ansible try to establish connection with devices it causes to fail with error ""ssh connection failed: Failed to authenticate with keyboard-interactive: Access denied for 'keyboard interactive'. Authentication that can continue: publickey,keyboard-interactive,password"}.
I thought that ansible trying to connect device by using "keyboard interactive" not with "keyboard-interactive" may be that is why it is failed but dont know why how to correct it.
In your case and in my case i found one more thing is comman that is OS, my server also using "[GCC 8.5.0 20210514 (Red Hat 8.5.0-22)]".
I need solution asap if someone have any solution or workaround then i would love to know.
Hi!
So I never got a real solution from Cisco (no surprise, tbh), but I did
find out that if you convert to using __Certificate based authentication __
it will immediately begin working again.
Where it's not permanent, it will get you off the ground again.
On Fri, Jan 31, 2025, 7:16 AM Prakhar Maurya ***@***.***> wrote:
I also startd facing same issue when trying to connect to IOS-XE device. I
thinks its not related with NXOS or IOS-XE may be something else. My code
also working fine previously.
When i try to connect devices manually (ssh ***@***.***) from same
ansible server it connects without any issue but when ansible try to
establish connection with devices it causes to fail with error ""ssh
connection failed: Failed to authenticate with keyboard-interactive: Access
denied for *'keyboard interactive'*. Authentication that can continue:
publickey,keyboard-interactive,password"}.
I thought that ansible trying to connect device by using "keyboard
interactive" not with "keyboard-interactive" may be that is why it is
failed but dont know why how to correct it.
In your case and in my case i found one more thing is comman that is OS,
my server also using "[*GCC 8.5.0 20210514 (Red Hat 8.5.0-22)]"*.
I need solution asap if someone have any solution or workaround then i
would love to know.
—
Reply to this email directly, view it on GitHub
<#914 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKLO3DMSCRNNQKJWPKIOVZD2NNSR5AVCNFSM6AAAAABTN6JLN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMRXGA3TCMRUGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
SUMMARY
When attempting to execute the module 'cisco.nxos.nxos_command' the below error is caught no matter what I attempt to tweak
"changed": false,
"module_stderr": "ssh connection failed: Failed to authenticate public key: Access denied for 'keyboard interactive'. Authentication that can continue: publickey,password,keyboard-interactive",
"module_stdout": "",
"msg": "MODULE FAILURE: No start of json char found\nSee stdout/stderr for the exact error"
This playbook shown is only a snippit of a larger one that was created to on-schedule execute MDS backups to a dedicated FTP server and scheduled via Rundeck (this is reproducable VIA rundeck OR this one-off playbook that I've moved to a basic deployment of Ansible-Core to troubleshoot)
It was running faultlessly for over a year, it began failing last week.
The uptime on the MDS is a frightful 532 days -- There was no update performed here.
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Worker node: Red Hat Enterprise Linux release 8.10 (Ootpa)
Hardware
cisco MDS 9706 (6 Slot) Chassis ("Supervisor Module-3")
STEPS TO REPRODUCE
EXPECTED RESULTS
It to connect and execute the command, allowing the FTP to complete.
ACTUAL RESULTS
From the specific play
The text was updated successfully, but these errors were encountered: