# Problem with paramiko

**URL:** <https://forum.ansible.com/t/problem-with-paramiko/7493>\
**Category:** Get Help\
**Tags:** ubuntu\
**Created:** [July 26, 2024, 9:46am UTC](https://forum.ansible.com/t/problem-with-paramiko/7493 "2024-07-26T09:46:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![none](https://avatars.discourse-cdn.com/v4/letter/n/f19dbf/32.png) [@none](https://forum.ansible.com/u/none)\
**Post date:** [July 26, 2024, 9:46am UTC](https://forum.ansible.com/t/problem-with-paramiko/7493/1 "2024-07-26T09:46:55Z")

</div>

Hi, i try to use Ansible to Configure our Cisco Catalyst Switches.  
But i got an error “{“changed”: false, “msg”: “paramiko is not installed: No module named ‘paramiko’”}”

To solve the Proble i tryed to install  
pip3 install paramiko  
apt install python3-paramiko  
and add the following lines to ansible.cfg  
transport = paramiko  
ansible\_python\_interpreter: ‘{{ ansible\_playbook\_python }}’

enviroment:  
Ubuntu bookworm/sid  
ansible [core 2.17.0]  
Python 3.10.12  
paramiko 3.4.0

Nothing solved the problem. Do have somebody a idea to resolve the problem?

reguards

---

<div class="post-metadata">

**Author:** ![chris](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/chris/32/293_2.png) [@chris](https://forum.ansible.com/u/chris)\
**Post date:** [July 26, 2024, 2:06pm UTC](https://forum.ansible.com/t/problem-with-paramiko/7493/2 "2024-07-26T14:06:05Z")

</div>

I’ve not used paramiko connections, so I might be wrong, but is the `paramiko` pip package required on the remote server as well as the Ansible controller?

Perhaps this would be clear if you posted the whole error message after running in verbose mode (`-vvv`)?

However this doesn’t appear to be documented on the [ansible.builtin.paramiko\_ssh connection page](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/paramiko_ssh_connection.html) 🤷.

---

<div class="post-metadata">

**Author:** ![bvitnik](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bvitnik/32/4132_2.png) [@bvitnik](https://forum.ansible.com/u/bvitnik)\
**Post date:** [July 26, 2024, 5:41pm UTC](https://forum.ansible.com/t/problem-with-paramiko/7493/3 "2024-07-26T17:41:10Z")

</div>

I don’t think paramiko is required on target host. Paramiko is still just an SSH client so having SSH server on target side should be enough.

@none I wonder how is you Ansible installed? If it does not see paramiko module even after `pip3 install paramiko` and/or `apt install python3-paramiko` then it is maybe installed inside virtual environment or container or something else?
