# Inventory Setup for SSH

**URL:** <https://forum.ansible.com/t/inventory-setup-for-ssh/34409>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [January 7, 2021, 2:05pm UTC](https://forum.ansible.com/t/inventory-setup-for-ssh/34409 "2021-01-07T14:05:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_John\_Lim](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@Paul\_John\_Lim](https://forum.ansible.com/u/Paul_John_Lim)\
**Post date:** [January 7, 2021, 2:05pm UTC](https://forum.ansible.com/t/inventory-setup-for-ssh/34409/1 "2021-01-07T14:05:17Z")

</div>

Hi! I’m just new here as I am new with ansible. I am using **Alpine Linux VM** on VirtualBox and my remote host will be **Ubuntu Server 20.04 VM** on VirtualBox too. I would like to ask how to know the IP address of ubuntu server that will enable me to connect to it via **SSH** in my alpine vm? The IP address I am currently using is 10.0.2.2 and it doesn’t seem to work. Even a ping will give me errors, “ **failed to connect to host via ssh** ” and “ **data could not be sent to remote host** ”

I would also like to know what are the initial configurations and setups to make SSH work which I think I have missed.

Thank you so much in advance

---

<div class="post-metadata">

**Author:** ![ffirg](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ffirg/32/10029_2.png) [@ffirg](https://forum.ansible.com/u/ffirg)\
**Post date:** [January 7, 2021, 8:09pm UTC](https://forum.ansible.com/t/inventory-setup-for-ssh/34409/2 "2021-01-07T20:09:13Z")

</div>

By default vbox uses a NAT’d network setup hence the 10.x addressing. You won’t be able to get to them from ‘outside’ vbox using ping etc. you can only vagrant ssh in. You need to use a bridged network for external access, checkout private\_ or public\_network in the Vagrantfile docs to set this up.

---

<div class="post-metadata">

**Author:** ![Paul\_John\_Lim](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@Paul\_John\_Lim](https://forum.ansible.com/u/Paul_John_Lim)\
**Post date:** [January 9, 2021, 5:12am UTC](https://forum.ansible.com/t/inventory-setup-for-ssh/34409/3 "2021-01-09T05:12:19Z")

</div>

Thank you for your reply but I have no idea how to checkout private\_ or public\_network in the vagrantfile docs. I already enabled bridged network in my VM on virtualbox before. If you dont mind, may I know the whole command needed to be executed? Sorry for the trouble but I literally have no knowledge or background about this.
