# SSH connection slow after going from 1.6 to 1.8

**URL:** <https://forum.ansible.com/t/ssh-connection-slow-after-going-from-1-6-to-1-8/16654>\
**Category:** Ansible Project\
**Created:** [October 31, 2014, 1:34am UTC](https://forum.ansible.com/t/ssh-connection-slow-after-going-from-1-6-to-1-8/16654 "2014-10-31T01:34:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Fuchs](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@Thomas\_Fuchs](https://forum.ansible.com/u/Thomas_Fuchs)\
**Post date:** [October 31, 2014, 1:34am UTC](https://forum.ansible.com/t/ssh-connection-slow-after-going-from-1-6-to-1-8/16654/1 "2014-10-31T01:34:32Z")

</div>

Hi there!

I’ve these options in my ansible.cfg:

[ssh\_connection]  
pipelining=True  
ssh\_args=-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=7200s

On an older version (Ansible 1.6 development, shortly before 1.7 was final), these settings make deploying relatively fast.

On Ansible 1.8 (devel fe0ab8e750, from earlier today), deploying is really, really, really slow.

How can update the settings/has configuration changed?

Thanks,  
Thomas

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [November 3, 2014, 1:32am UTC](https://forum.ansible.com/t/ssh-connection-slow-after-going-from-1-6-to-1-8/16654/2 "2014-11-03T01:32:07Z")

</div>

What is your control machine (machine you are running ansible from)?

Ansible 1.8 now chooses paramiko as the “smart” transport when running from Mac. If this is your case, you will need to set transport = ssh under defaults as well.

You can verify if you are using ssh or paramiko by running with -vvvv, which may help trace things down regardless of this being the case.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [November 3, 2014, 2:28pm UTC](https://forum.ansible.com/t/ssh-connection-slow-after-going-from-1-6-to-1-8/16654/3 "2014-11-03T14:28:49Z")

</div>

“Ansible 1.8 now chooses paramiko as the “smart” transport when running from Mac. If this is your case, you will need to set transport = ssh under defaults as well.”

Actually it doesn’t.

Darwin has a somewhat common error where “askpass” for SSH can occasionally kernel panic the machine (I’m almost positive this is due to iCloud keychain - possibly a keychain plugin - or something like it), so we’ll use paramiko by default there in 1.8 to avoid this happening.

We’ve considered making it do this only if it thinks it needs a password, but that’s possibly confusing.

I think it’s time to make that change now though, and I’ll see that we do.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [November 3, 2014, 2:30pm UTC](https://forum.ansible.com/t/ssh-connection-slow-after-going-from-1-6-to-1-8/16654/4 "2014-11-03T14:30:29Z")

</div>

Filed here for reference:

[https://github.com/ansible/ansible/issues/9470](https://github.com/ansible/ansible/issues/9470)
