summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Howard <ben.howard@ubuntu.com>2014-12-02 21:53:06 -0700
committerusd-importer <ubuntu-server@lists.ubuntu.com>2014-12-03 04:58:27 +0000
commit65c76f341ec68bcdc2f742e57e4adfb1083283f5 (patch)
tree104d6243c1145e86d9e913690d40fb419f2cf043
parent57c20bd7ec1824df0cc6bb8621087f008af24d2b (diff)
downloadvyos-walinuxagent-65c76f341ec68bcdc2f742e57e4adfb1083283f5.tar.gz
vyos-walinuxagent-65c76f341ec68bcdc2f742e57e4adfb1083283f5.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)