# Use bastion host with Ansible

DevFeed: [Use bastion host with Ansible](<https://devfeed.tech/articles/use-bastion-host-with-ansible-27656.md>)

Original publisher: [Read original article](<https://gagor.pro/2016/04/use-bastion-host-with-ansible/>)

Author: Tom

Published: 2016-04-22T00:00:00Z

Content type: tutorial

Language: en

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [Ansible](<https://devfeed.tech/topics/ansible.md>), [ssh](<https://devfeed.tech/topics/ssh.md>), [configuration](<https://devfeed.tech/topics/configuration.md>)

Tags: [ansible](<https://devfeed.tech/tags/ansible.md>), [ansible-configuration](<https://devfeed.tech/tags/ansible-configuration.md>), [bash](<https://devfeed.tech/tags/bash.md>), [bastion](<https://devfeed.tech/tags/bastion.md>), [bastion-host](<https://devfeed.tech/tags/bastion-host.md>), [cloud-security](<https://devfeed.tech/tags/cloud-security.md>), [config](<https://devfeed.tech/tags/config.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [devops](<https://devfeed.tech/tags/devops.md>), [files](<https://devfeed.tech/tags/files.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [infrastructure-as-code](<https://devfeed.tech/tags/infrastructure-as-code.md>), [jump-host](<https://devfeed.tech/tags/jump-host.md>), [proxycommand](<https://devfeed.tech/tags/proxycommand.md>), [security](<https://devfeed.tech/tags/security.md>), [ssh](<https://devfeed.tech/tags/ssh.md>), [ssh-proxy](<https://devfeed.tech/tags/ssh-proxy.md>)

## AI overview

A tutorial on configuring Ansible and SSH to connect to hosts behind a secured bastion or jump host. It explains how to customize ssh_config and ansible.cfg, forward SSH keys and traffic, and use connection multiplexing.

## Source excerpt

Learn how to configure Ansible to connect to hosts behind a bastion or jump host by customizing your ssh_config and ansible.cfg files.