From 3b7791501efcc61561a002d999b1fd48d73b4525 Mon Sep 17 00:00:00 2001 From: Evans Tucker Date: Tue, 2 Jul 2019 01:53:08 -0700 Subject: [PATCH] Adding "-F /dev/null" to load null SSH config file. (#4933) --- roles/bastion-ssh-config/templates/ssh-bastion.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/bastion-ssh-config/templates/ssh-bastion.conf b/roles/bastion-ssh-config/templates/ssh-bastion.conf index 814545c1d..b460d6ba3 100644 --- a/roles/bastion-ssh-config/templates/ssh-bastion.conf +++ b/roles/bastion-ssh-config/templates/ssh-bastion.conf @@ -15,4 +15,4 @@ Host {{ bastion_ip }} ControlPersist 5m Host {{ vars['hosts'] }} - ProxyCommand ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -W %h:%p {{ real_user }}@{{ bastion_ip }} {% if ansible_ssh_private_key_file is defined %}-i {{ ansible_ssh_private_key_file }}{% endif %} + ProxyCommand ssh -F /dev/null -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -W %h:%p {{ real_user }}@{{ bastion_ip }} {% if ansible_ssh_private_key_file is defined %}-i {{ ansible_ssh_private_key_file }}{% endif %}