# Ansible tower new host ssh connection

**URL:** <https://forum.ansible.com/t/ansible-tower-new-host-ssh-connection/24216>\
**Category:** Ansible Project\
**Created:** [April 13, 2017, 10:54am UTC](https://forum.ansible.com/t/ansible-tower-new-host-ssh-connection/24216 "2017-04-13T10:54:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shruti\_Sharda](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@Shruti\_Sharda](https://forum.ansible.com/u/Shruti_Sharda)\
**Post date:** [April 13, 2017, 10:54am UTC](https://forum.ansible.com/t/ansible-tower-new-host-ssh-connection/24216/1 "2017-04-13T10:54:26Z")

</div>

Hi,  
I have recently started using Ansible tower for REST based API support for ansible. In order to manage new hosts in ansible we need to edit /etc/ansible/hosts file, add new host to it, and setup SSH connection with this host by copying the ssh-keygen file to this new host.

My question is :

1. We have Inventory in ansible tower as well. If i add my host to Ansible tower do i still need to add this host entry to my etc/ansible/hosts file ?
2. If adding the host to tower is sufficient, how can i run job on the fly on this new host. Will Tower setup SSH on its own or i still have to setup SSH for newly added host ? Is there a way to automate this through REST API ?

I am new to linux and i have never worked on SSH before. Any help would be useful ? Please let me know if you need any further details.

Thanks  
Shruti

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [April 13, 2017, 4:47pm UTC](https://forum.ansible.com/t/ansible-tower-new-host-ssh-connection/24216/2 "2017-04-13T16:47:10Z")

</div>

For tower questions, please utilize [https://access.redhat.com/products/ansible-tower-red-hat](https://access.redhat.com/products/ansible-tower-red-hat)

This mailing list is for the open source ansible project.
