summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Howard <ben.howard@ubuntu.com>2014-05-20 08:26:50 -0600
committerusd-importer <ubuntu-server@lists.ubuntu.com>2014-05-20 14:53:44 +0000
commit00c97042e31a0b55b34e0fc9ed8773651a708bfe (patch)
tree116650330685e98abfd3d0f3f7cde100ef8f8f24
parentf05c244c0aa299af0ed108b12af93bc403e1a2d1 (diff)
downloadvyos-walinuxagent-00c97042e31a0b55b34e0fc9ed8773651a708bfe.tar.gz
vyos-walinuxagent-00c97042e31a0b55b34e0fc9ed8773651a708bfe.zip
Fix for broken sshd configuration (LP: #1305418)
Gbp-Pq: sshd_config_newline_fix.patch.
-rw-r--r--waagent2
1 files changed, 1 insertions, 1 deletions
diff --git a/waagent b/waagent
index 692d341..6d9b4d4 100644
--- a/waagent
+++ b/waagent
@@ -3719,7 +3719,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)