diff options
author | Ben Howard <ben.howard@ubuntu.com> | 2014-05-20 08:26:50 -0600 |
---|---|---|
committer | usd-importer <ubuntu-server@lists.ubuntu.com> | 2014-05-20 14:53:44 +0000 |
commit | 00c97042e31a0b55b34e0fc9ed8773651a708bfe (patch) | |
tree | 116650330685e98abfd3d0f3f7cde100ef8f8f24 | |
parent | f05c244c0aa299af0ed108b12af93bc403e1a2d1 (diff) | |
download | vyos-walinuxagent-00c97042e31a0b55b34e0fc9ed8773651a708bfe.tar.gz vyos-walinuxagent-00c97042e31a0b55b34e0fc9ed8773651a708bfe.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) |