From b9370c3cea32d3fd3ee89a8dc5cba0278103c801 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Tue, 3 May 2016 08:25:16 -0500 Subject: [PATCH] Allow root logins from localhost In order to have ansible be able to ssh in to itself, we need to enable localhost ssh logins. Change-Id: Iff9d7d72c4ca7848aa49a55d75ee5a2fdd313761 --- templates/sshd_config.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/sshd_config.erb b/templates/sshd_config.erb index 4e7a512..9304fe3 100644 --- a/templates/sshd_config.erb +++ b/templates/sshd_config.erb @@ -88,3 +88,6 @@ UsePAM yes # allow ansible connections from puppetmaster host Match host <%= @trusted_ssh_source %> PermitRootLogin without-password +# allow ansible connections from localhost +Match host localhost + PermitRootLogin without-password