# Accessing Servers through Jumpbox

**URL:** <https://forum.ansible.com/t/accessing-servers-through-jumpbox/36106>\
**Category:** AWX Project\
**Tags:** ubuntu, awx\
**Created:** [December 13, 2021, 4:08pm UTC](https://forum.ansible.com/t/accessing-servers-through-jumpbox/36106 "2021-12-13T16:08:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danie\_Brink](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@Danie\_Brink](https://forum.ansible.com/u/Danie_Brink)\
**Post date:** [December 13, 2021, 4:08pm UTC](https://forum.ansible.com/t/accessing-servers-through-jumpbox/36106/1 "2021-12-13T16:08:39Z")

</div>

Hello all

I hope I can get some guidance here regarding my problem reaching my AWX nodes via a jump/bastion server.

AWX Version : AWX 17.1.0  
OS : Ubuntu 20.04

On my AWX host I tested the following way if I can reach my node via ssh :

**.ssh/config**

root@ansible-master:~/.ssh# cat config

Host jumpserver  
Hostname 41.71.64.218  
ForwardAgent yes  
Port 29  
User awx\_service  
IdentityFile ~/.ssh/id\_rsa\_awx

Host staging\_db01  
Hostname 172.16.0.60  
ForwardAgent yes  
User awx\_service  
Port 29  
IdentityFile ~/.ssh/id\_rsa\_awx  
ProxyJump jumpserver

**ssh to staging\_db01**

root@ansible-master:~/.ssh# ssh staging\_db01  
Welcome to Ubuntu 16.04.7 LTS (GNU/Linux 4.4.0-210-generic x86\_64)  
awx\_service@db01:~$

**In ansible I use the ansible\_ssh\_common\_args variable in the inventory and it work:**

ansible\_ssh\_common\_args=‘-J awx\_service@41.71.64.218:29’

In awx I tried what feels like everything under the sun, but cannot successfully ping my nodes. Does anybody have a document or instructions that can guide me through this process.

Thanks

Danie Brink

---

<div class="post-metadata">

**Author:** ![Carlos\_Betancourt](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@Carlos\_Betancourt](https://forum.ansible.com/u/Carlos_Betancourt)\
**Post date:** [December 14, 2021, 1:27pm UTC](https://forum.ansible.com/t/accessing-servers-through-jumpbox/36106/2 "2021-12-14T13:27:01Z")

</div>

Check this official information out:  
[https://docs.ansible.com/ansible-tower/latest/html/administration/tipsandtricks.html#setting-up-a-jump-host-to-use-with-tower](https://docs.ansible.com/ansible-tower/latest/html/administration/tipsandtricks.html#setting-up-a-jump-host-to-use-with-tower)

AWX does work when using the “ProxyCommand” (Instead of ProxyJump) in the ansible\_ssh\_common\_args inventory variable. It should look like the following:  
ansible\_ssh\_common\_args: ‘-o ProxyCommand=“ssh -W %h:%p -q \<user\_name\>@\<jump\_server\_name\>”’

Again, this is an inventory variable that should be available in AWX. You can define it at the inventory level (as vars in the AWX Inventory definition), at the ‘group’ or ‘host’ levels.

Make sure to have the SSH private key (for the jumphost user) set up as a ‘Machine Credential’ in AWX, then include that credential in the Templates that you define in AWX.

I hope the above helps!
