# How to use safe box password authentication RDP and SSH

**URL:** <https://forum.ansible.com/t/how-to-use-safe-box-password-authentication-rdp-and-ssh/31463>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [October 11, 2019, 6:33pm UTC](https://forum.ansible.com/t/how-to-use-safe-box-password-authentication-rdp-and-ssh/31463 "2019-10-11T18:33:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabriel\_Silva](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@Gabriel\_Silva](https://forum.ansible.com/u/Gabriel_Silva)\
**Post date:** [October 11, 2019, 6:33pm UTC](https://forum.ansible.com/t/how-to-use-safe-box-password-authentication-rdp-and-ssh/31463/1 "2019-10-11T18:33:54Z")

</div>

Good afternoon, how to connect in windows and linux (rdp and ssh) through a gateway (password vault) with ansible.  
Example: To access normally via ssh I use:

# ssh [root@192.168.0.1](mailto:root@192.168.0.1)@gateway.intranet

This prompts you for the domain username and password, and then the root password.

How can I make ansible connect to servers that need this authentication?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [October 11, 2019, 9:45pm UTC](https://forum.ansible.com/t/how-to-use-safe-box-password-authentication-rdp-and-ssh/31463/2 "2019-10-11T21:45:22Z")

</div>

Try something like this in your inventory:

192.168.0.1 ansible\_user=root ansible\_ssh\_common\_args='-o  
ProxyJump="gateway.intranet"'

---

<div class="post-metadata">

**Author:** ![Gabriel\_Silva](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@Gabriel\_Silva](https://forum.ansible.com/u/Gabriel_Silva)\
**Post date:** [October 14, 2019, 2:29pm UTC](https://forum.ansible.com/t/how-to-use-safe-box-password-authentication-rdp-and-ssh/31463/3 "2019-10-14T14:29:49Z")

</div>

![Capture.PNG](https://us1.discourse-cdn.com/ansible/original/2X/d/db7b9bf7651ecc5d545d434f3630507219d8273c.png)

Good morning, I took the test, but it did not work, follow error attached.
