ansible - Connection timed out during banner exchange when Using jump host

Viewed 1246

The ansible command : ansible all -m ping -i host.yml

Here is my host.yml

---
all:
  hosts:
    tencent:
      ansible_user: "ubuntu"
      ansible_host: "106.55.XXX.XXX"
      ansible_ssh_private_key_file: "key.pem"
      ansible_ssh_common_args: 'ssh -o ProxyCommand="ssh -i bastion.key.pem ubuntu@102.106.XXX.XXX"'

Error msg:

Failed to connect to the host via ssh: Connection timed out during banner exchange

How to correctly use the jump host in ansible?

1 Answers
Related