diff options
author | Ben Howard <ben.howard@ubuntu.com> | 2014-11-07 07:02:18 -0700 |
---|---|---|
committer | usd-importer <ubuntu-server@lists.ubuntu.com> | 2014-11-07 17:08:36 +0000 |
commit | 58d2ba7c98a5e3cdeff16db85e90855218f3d10a (patch) | |
tree | b0bffdcdd9d735aaf6c0fe0243fef55f4883ce15 | |
parent | d46752b53f19707ea4451904300cac4d092a860b (diff) | |
download | vyos-walinuxagent-58d2ba7c98a5e3cdeff16db85e90855218f3d10a.tar.gz vyos-walinuxagent-58d2ba7c98a5e3cdeff16db85e90855218f3d10a.zip |
Fix for broken sshd configuration (LP: #1305418)
Gbp-Pq: sshd_config_newline_fix.patch.
-rw-r--r-- | waagent | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |