# ssh v1 protocol: Protocol major versions differ: 2 vs. 1

**URL:** <https://forum.ansible.com/t/ssh-v1-protocol-protocol-major-versions-differ-2-vs-1/20027>\
**Category:** Ansible Project\
**Created:** [December 16, 2015, 6:07am UTC](https://forum.ansible.com/t/ssh-v1-protocol-protocol-major-versions-differ-2-vs-1/20027 "2015-12-16T06:07:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gavin](https://avatars.discourse-cdn.com/v4/letter/g/439d5e/32.png) [@Gavin](https://forum.ansible.com/u/Gavin)\
**Post date:** [December 16, 2015, 6:07am UTC](https://forum.ansible.com/t/ssh-v1-protocol-protocol-major-versions-differ-2-vs-1/20027/1 "2015-12-16T06:07:44Z")

</div>

When I tried to connect a machine, it appeared the following error:  
test | FAILED =\> failed to transfer file to /root/.ansible/tmp/ansible-tmp-1450244649.99-88355087476052/command:

Connecting to _._._._…  
Protocol major versions differ: 2 vs. 1  
Couldn’t read packet: Connection reset by peer

It seems to be caused because of that the machine is using ssh v1 protocol, but I don’t know how to connect the machine through ssh v1 protocol.

What should I do? Any help would be greatly appreciated.

Thanks,  
-Gavin

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [December 16, 2015, 1:33pm UTC](https://forum.ansible.com/t/ssh-v1-protocol-protocol-major-versions-differ-2-vs-1/20027/2 "2015-12-16T13:33:12Z")

</div>

you should reconfigure the machine to use ssh v2, v1 has been insecure  
for many years.
