summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Howard <ben.howard@ubuntu.com>2014-04-10 14:04:44 -0600
committerusd-importer <ubuntu-server@lists.ubuntu.com>2014-04-10 21:08:32 +0000
commit5cf5793d5fcad94d51671d869572248ae90fc375 (patch)
tree978547146973a99dc5d0c754e0cedd63e511176e
parent4bdc1e1ee5a6b4c571b936fc389d5be972702145 (diff)
downloadvyos-walinuxagent-5cf5793d5fcad94d51671d869572248ae90fc375.tar.gz
vyos-walinuxagent-5cf5793d5fcad94d51671d869572248ae90fc375.zip
Fix for broken sshd configuration (LP: #1305418)
Gbp-Pq: sshd_config_newline_fix.patch.
-rwxr-xr-xwaagent2
1 files changed, 1 insertions, 1 deletions
diff --git a/waagent b/waagent
index 5be3288..621f939 100755
--- a/waagent
+++ b/waagent
@@ -3353,7 +3353,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)