Would using a netcat tunnel work for you?

We had a similar setup were I used to work and used ssh config to
automate the tunnel usage.

Host targethoust
    HostName targethost
    User myuser
    ProxyCommand ssh proxyhost nc %h %p 2> /dev/null

http://backdrift.org/transparent-proxy-with-ssh

On 24/12/2015 22:07, Fabricio Cruz wrote:
> Hello
>
> Thanks for your reply, my scenario is as follows:
>
> hostA --- used as a bridge to access the hostX (local machine).
>
> HostC --- ansible server you need to manage hostX, perform
> installations and upgrades using ansible.
>
> It is possible ?
>
>
> Thank you so much.
>
> 2015-12-24 15:08 GMT-02:00 Brian Coca <[email protected]
> <mailto:[email protected]>>:
>
>     just setup this info in your hosts file:
>
>     hostx ansible_ssh_host=localhost:10000
>
>     then ansible will use the existing tunnel every time to get to hostx
>
>
>
>     --
>     Brian Coca
>
>     --
>     You received this message because you are subscribed to a topic in
>     the Google Groups "Ansible Project" group.
>     To unsubscribe from this topic, visit
>     https://groups.google.com/d/topic/ansible-project/_J9nWHVzIPg/unsubscribe.
>     To unsubscribe from this group and all its topics, send an email
>     to [email protected]
>     <mailto:ansible-project%[email protected]>.
>     To post to this group, send email to
>     [email protected]
>     <mailto:[email protected]>.
>     To view this discussion on the web visit
>     
> https://groups.google.com/d/msgid/ansible-project/CAJ5XC8%3DJqBcSuaKEwA8mpoVt6NG2ovsA2tBtmwQ6Y0%3DiWfgOcw%40mail.gmail.com.
>     For more options, visit https://groups.google.com/d/optout.
>
>
> -- 
> 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 [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAPav1BvskznFx2sNuqTRb%3Di-h_SfAAq%3Di5j%3Dr85WPUtKn1tcVg%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAPav1BvskznFx2sNuqTRb%3Di-h_SfAAq%3Di5j%3Dr85WPUtKn1tcVg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/56807E40.2020102%40night-shade.org.uk.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to