# modify ssh  config

**URL:** <https://forum.ansible.com/t/modify-ssh-config/26300>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [December 15, 2017, 8:12am UTC](https://forum.ansible.com/t/modify-ssh-config/26300 "2017-12-15T08:12:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkoch](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@mkoch](https://forum.ansible.com/u/mkoch)\
**Post date:** [December 15, 2017, 8:12am UTC](https://forum.ansible.com/t/modify-ssh-config/26300/1 "2017-12-15T08:12:13Z")

</div>

Hi all,  
I already searched the web to update ssh configuration, but was unsuccessful. Is there an official way to inject a customized ssh configuration? If not I would raise an issue.

The problem: I have a couple of servers behind a jumphost with a special port, I want to manage with AWX.

As a workaround the following script does the job after installation:

---

<div class="post-metadata">

**Author:** ![Timothy\_Appnel1](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@Timothy\_Appnel1](https://forum.ansible.com/u/Timothy_Appnel1)\
**Post date:** [December 19, 2017, 7:39pm UTC](https://forum.ansible.com/t/modify-ssh-config/26300/2 "2017-12-19T19:39:38Z")

</div>

[http://docs.ansible.com/ansible/latest/intro\_inventory.html#list-of-behavioral-inventory-parameters](http://docs.ansible.com/ansible/latest/intro_inventory.html#list-of-behavioral-inventory-parameters)

[http://docs.ansible.com/ansible/latest/intro\_configuration.html#openssh-specific-settings](http://docs.ansible.com/ansible/latest/intro_configuration.html#openssh-specific-settings)

---

<div class="post-metadata">

**Author:** ![Cesar\_Sanchez2](https://avatars.discourse-cdn.com/v4/letter/c/f6c823/32.png) [@Cesar\_Sanchez2](https://forum.ansible.com/u/Cesar_Sanchez2)\
**Post date:** [January 4, 2018, 4:08pm UTC](https://forum.ansible.com/t/modify-ssh-config/26300/3 "2018-01-04T16:08:23Z")

</div>

You can leverage that work to your dynamic inventory instead.

You could generate the dynamic inventory that injects that for you and have:

[server1]  
server1.hidden.lan ansible\_ssh\_common\_args=“-o ProxyCommand="ssh -A -W -p 4321 %h:%p -o User=jump [jumphost.someip.com](http://jumphost.someip.com)"”

-Cesar
