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