Why am I unable to escape the backslash on domain\user when using a SSH proxy command with Ansible?

Solution Verified - Updated -

Issue

When adding the ProxyCommand to Ansible's SSH arguments, Ansible fails to connect to the proxy server because the domain\username@server becomes domainusername@server.

Environment

  • Ansible Automation Platform 1.2+

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content