# AWX Connection to Proxy Server - kex\_exchange\_identification Error

**URL:** <https://forum.ansible.com/t/awx-connection-to-proxy-server-kex-exchange-identification-error/6755>\
**Category:** Get Help\
**Tags:** awx, kubernetes\
**Created:** [June 24, 2024, 8:29pm UTC](https://forum.ansible.com/t/awx-connection-to-proxy-server-kex-exchange-identification-error/6755 "2024-06-24T20:29:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pwalters04](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pwalters04/32/2236_2.png) [@pwalters04](https://forum.ansible.com/u/pwalters04)\
**Post date:** [June 24, 2024, 8:29pm UTC](https://forum.ansible.com/t/awx-connection-to-proxy-server-kex-exchange-identification-error/6755/1 "2024-06-24T20:29:59Z")

</div>

I am attempting to connect to a server that can only be SSH into from a proxy server. When I attempt to ssh from my Job template, I receive this error:

```auto
Failed to connect to the host via ssh: kex_exchange_identification: Connection closed by remote host\r\nConnection closed by UNKNOWN port 65535

```

When I attempt from the Node of the AWX Kubernetes Cluster, I can ssh in.

I have updated my inventory vars on the inventory detail page to:

```auto
---
ansible_connection: ssh
ansible_ssh_common_args: '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ProxyCommand=" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/nul ncat --proxy-type socks5 --proxy <MY-Proxy-Server>:<My Proxy-Server-Port> %h %p"'

```

AWX Version: 23.7.0

I am unable to capture logs, due to the pod keep terminating, even though I have Release Receptor Work enabled

---

<div class="post-metadata">

**Author:** ![pwalters04](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pwalters04/32/2236_2.png) [@pwalters04](https://forum.ansible.com/u/pwalters04)\
**Post date:** [June 25, 2024, 7:10pm UTC](https://forum.ansible.com/t/awx-connection-to-proxy-server-kex-exchange-identification-error/6755/2 "2024-06-25T19:10:18Z")

</div>

Solved the issue, the execution env image needed to to have ncat install on it

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [July 25, 2024, 7:11pm UTC](https://forum.ansible.com/t/awx-connection-to-proxy-server-kex-exchange-identification-error/6755/3 "2024-07-25T19:11:16Z")

</div>

Closed on July 25, 2024, 7:11pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
