diff options
author | Ben Howard <ben.howard@ubuntu.com> | 2014-06-03 09:21:20 -0600 |
---|---|---|
committer | usd-importer <ubuntu-server@lists.ubuntu.com> | 2014-06-03 15:33:22 +0000 |
commit | f0acb83052422e160573b25f21bc87fb8cd53575 (patch) | |
tree | 2522835acedc9aab1185b2eaf4d74c6d15e84dcf | |
parent | c8639706a8a23f0af0e0d4895086fc8c1e44bf69 (diff) | |
download | vyos-walinuxagent-f0acb83052422e160573b25f21bc87fb8cd53575.tar.gz vyos-walinuxagent-f0acb83052422e160573b25f21bc87fb8cd53575.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
@@ -3719,7 +3719,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) |