diff options
author | Ben Howard <ben.howard@ubuntu.com> | 2014-11-26 11:41:59 -0700 |
---|---|---|
committer | usd-importer <ubuntu-server@lists.ubuntu.com> | 2014-11-26 19:08:31 +0000 |
commit | e7e031e67cf2e24f7f94d26d7710bee7c61cb95a (patch) | |
tree | b281f0702061a1d8a2d019addb54ed4d37f0433e | |
parent | be9fc8f27f67167d911fa95fc73f746323588ded (diff) | |
download | vyos-walinuxagent-e7e031e67cf2e24f7f94d26d7710bee7c61cb95a.tar.gz vyos-walinuxagent-e7e031e67cf2e24f7f94d26d7710bee7c61cb95a.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) |