summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Howard <ben.howard@ubuntu.com>2014-11-06 16:33:42 -0700
committerusd-importer <ubuntu-server@lists.ubuntu.com>2014-11-07 00:08:29 +0000
commit9696f583a0ef57eb564ed43e12c295ccd53e0daa (patch)
treeab815c933aec1150a3d0a9958b31a6545e0862a4
parent10e883553b15ca9bb3d4a2323817db92fdd9b747 (diff)
downloadvyos-walinuxagent-9696f583a0ef57eb564ed43e12c295ccd53e0daa.tar.gz
vyos-walinuxagent-9696f583a0ef57eb564ed43e12c295ccd53e0daa.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 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)