# Reusing SSH Connections

**URL:** <https://forum.ansible.com/t/reusing-ssh-connections/11848>\
**Category:** Ansible Project\
**Tags:** rhel, fedora, ansible-project\
**Created:** [August 31, 2012, 12:05pm UTC](https://forum.ansible.com/t/reusing-ssh-connections/11848 "2012-08-31T12:05:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [August 31, 2012, 12:05pm UTC](https://forum.ansible.com/t/reusing-ssh-connections/11848/1 "2012-08-31T12:05:19Z")

</div>

Have you tried the SSH connection type vs paramiko? That's just "-c ssh" in all versions and can also be configured in 0.7's configuration file.

If your SSH supports ControlPersist that should do what you want. However, if it does NOT support ControlPersist, the SSH connection type will be not as quick as paramiko. Ansible will let you know if your SSH can't support that when it tries to pass those parameters.

(If you're on older RHEL, using a Fedora machine, running playbooks from a Fedora machine isn't a bad idea.)

---

<div class="post-metadata">

**Author:** ![Mark\_Nottingham](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@Mark\_Nottingham](https://forum.ansible.com/u/Mark_Nottingham)\
**Post date:** [September 1, 2012, 1:07am UTC](https://forum.ansible.com/t/reusing-ssh-connections/11848/2 "2012-09-01T01:07:26Z")

</div>

Works, thanks!
