# ansible to SSH to a remote host sits behind a web proxy

**URL:** <https://forum.ansible.com/t/ansible-to-ssh-to-a-remote-host-sits-behind-a-web-proxy/26194>\
**Category:** Ansible Project\
**Created:** [December 3, 2017, 12:16pm UTC](https://forum.ansible.com/t/ansible-to-ssh-to-a-remote-host-sits-behind-a-web-proxy/26194 "2017-12-03T12:16:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anoop\_vc](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@anoop\_vc](https://forum.ansible.com/u/anoop_vc)\
**Post date:** [December 3, 2017, 12:16pm UTC](https://forum.ansible.com/t/ansible-to-ssh-to-a-remote-host-sits-behind-a-web-proxy/26194/1 "2017-12-03T12:16:05Z")

</div>

Hi,

I can access a host only through a web proxy using the host’s pubic ip adress. How to run tasks against that server.

ansible controller node name : AnsibleHost  
remote server name : remotehost  
webproxy: [proxy.com:8080](http://proxy.com:8080)

I can connect to remotehost from AnsibleHost through this web proxy only. how to configure it in inventory. Please help
