One Trouble! -- ansible connect to remote host

In my IT infrastructure , ansible can not connet to remote host by ssh directly,between server and remote has a FM(Fortress Machine),how can I connet to remote with zhe FM?

Hi,
you can use the ssh proxycommand option:

$ cat ~/.ssh/config

   Host host1
     User user1
     ProxyCommand ssh FM_user@FM -W %h:%p

Best,
Martin

I try it, and exceute:
ansible 192.168.170.197 -m setup

but looks this:

then ,input anything will be error always

在 2016年10月18日星期二 UTC+8下午1:35:48,Martin Schmidt写道: