Skip to content

Conversation

@KB-perByte
Copy link
Collaborator

@KB-perByte KB-perByte commented Sep 17, 2025

SUMMARY

Added support for private key passphrase in libssh connection plugin, when using encrypted private keys specified by the C(ansible_private_key_file) attribute.
Set libssh logging level to DEBUG when Ansible verbosity is greater than 3, to aid in troubleshooting connection issues.
Works well with - ansible/pylibssh#597

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

libssh.py

ADDITIONAL INFORMATION
    ios:
      ansible_connection: network_cli
      ansible_network_os: ios
      ansible_ssh_user: admin
      ansible_ssh_private_key_file: ~/.ssh/test-key-pub
      ansible_private_key_passphrase=mysecretpassphrase
      ansible_become_method: enable
      ansible_network_cli_ssh_type: libssh
      ansible_libssh_config_file: test-key-pub-config

@KB-perByte KB-perByte merged commit 40eff52 into ansible-collections:main Sep 19, 2025
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Private key with passphrase not working with libssh

3 participants