# Using Paramiko for Connection to Cisco device and need to specify parameters for the connection

**URL:** <https://forum.ansible.com/t/using-paramiko-for-connection-to-cisco-device-and-need-to-specify-parameters-for-the-connection/17082>\
**Category:** Ansible Project\
**Created:** [December 16, 2014, 9:55pm UTC](https://forum.ansible.com/t/using-paramiko-for-connection-to-cisco-device-and-need-to-specify-parameters-for-the-connection/17082 "2014-12-16T21:55:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph\_Jenkins](https://avatars.discourse-cdn.com/v4/letter/j/bb73d2/32.png) [@Joseph\_Jenkins](https://forum.ansible.com/u/Joseph_Jenkins)\
**Post date:** [December 16, 2014, 9:55pm UTC](https://forum.ansible.com/t/using-paramiko-for-connection-to-cisco-device-and-need-to-specify-parameters-for-the-connection/17082/1 "2014-12-16T21:55:05Z")

</div>

Can you specify parameters for Paramiko to use when connecting to devices in the hosts file for a device? I need to provide certain parameters so that Paramiko will complete the connection. It works when I run Paramiko in a python program on it’s own, but when trying to do it within Ansible it is not taking those parameters and failing authentication. The parameters are as follows:

look\_for\_keys=False

allow\_agent=False

look\_for\_keys=False allow\_agent=False

TIA
