From 2dc6bc53e28025b23cce4fece19461bcdc6d74b0 Mon Sep 17 00:00:00 2001 From: Ben Howard Date: Fri, 29 Aug 2014 10:11:12 -0600 Subject: Fix for broken sshd configuration (LP: #1305418) Gbp-Pq: sshd_config_newline_fix.patch. --- waagent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waagent b/waagent index eb6a64b..2c69ceb 100644 --- a/waagent +++ b/waagent @@ -3838,7 +3838,7 @@ class OvfEnv(object): # Disable RFC 4252 and RFC 4256 authentication schemes. ReplaceFileContentsAtomic(filepath, "\n".join(filter(lambda a: not (a.startswith("PasswordAuthentication") or a.startswith("ChallengeResponseAuthentication")), - GetFileContents(filepath).split('\n'))) + "PasswordAuthentication no\nChallengeResponseAuthentication no\n") + GetFileContents(filepath).split('\n'))) + "\nPasswordAuthentication no\nChallengeResponseAuthentication no\n") Log("Disabled SSH password-based authentication methods.") if self.AdminPassword != None: MyDistro.changePass('root',self.AdminPassword) -- cgit v1.2.3