How to use safe box password authentication RDP and SSH

30 views
Skip to first unread message

Gabriel Silva

unread,
Oct 11, 2019, 2:33:54 PM10/11/19
to Ansible Project
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 ro...@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.


Dick Visser

unread,
Oct 11, 2019, 5:45:50 PM10/11/19
to ansible...@googlegroups.com
Try something like this in your inventory:

192.168.0.1 ansible_user=root ansible_ssh_common_args='-o
ProxyJump="gateway.intranet"'
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d2337143-d178-4e55-bc66-4c4c60bd2266%40googlegroups.com.



--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

Gabriel Silva

unread,
Oct 14, 2019, 10:29:49 AM10/14/19
to Ansible Project

Capture.PNG

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

Em sexta-feira, 11 de outubro de 2019 18:45:50 UTC-3, Dick Visser escreveu:
Try something like this in your inventory:

192.168.0.1 ansible_user=root ansible_ssh_common_args='-o
ProxyJump="gateway.intranet"'

On Fri, 11 Oct 2019 at 20:34, Gabriel Silva <g.si...@gmail.com> wrote:
>
> 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 ro...@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.
>
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages