# ansible bastion host with passwords only

**URL:** <https://forum.ansible.com/t/ansible-bastion-host-with-passwords-only/20035>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [December 16, 2015, 6:12pm UTC](https://forum.ansible.com/t/ansible-bastion-host-with-passwords-only/20035 "2015-12-16T18:12:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kelly\_Goedert](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@Kelly\_Goedert](https://forum.ansible.com/u/Kelly_Goedert)\
**Post date:** [December 16, 2015, 6:12pm UTC](https://forum.ansible.com/t/ansible-bastion-host-with-passwords-only/20035/1 "2015-12-16T18:12:38Z")

</div>

Hi,

I just started using ansible and so far it works nice. I was able to create playbooks and execute them without any problems when I have a direct access to the server where I need the commands to be run.

Now I have a situation where I need from my machine, I will call it machine A, connect to machine B and from machine B connect to machine C, which is where the commands should actually run.

ssh keys are not an option. I can’t import keys from one machine into the other. I don’t have .pem files to use. I am restricted to _passwords only_.

Can I do this using ansible?

I followed this blog post [https://medium.com/@paulskarseth/ansible-bastion-host-proxycommand-e6946c945d30#.lv8udztu0](https://medium.com/@paulskarseth/ansible-bastion-host-proxycommand-e6946c945d30#.lv8udztu0)  
but I still cannot connect from machine B to machine C.

I found some posts here in the forum that used other parameters on the proxycommand like ‘nc’.

I am using ansible 1.9.4 on a ubuntu box.

Thanks for any help.

Kelly
