diff options
author | Ben Howard <ben.howard@ubuntu.com> | 2015-03-09 06:26:48 -0600 |
---|---|---|
committer | usd-importer <ubuntu-server@lists.ubuntu.com> | 2015-03-09 12:53:34 +0000 |
commit | dfc20cc3f55bea55a4198d8dc22194b14ff883c1 (patch) | |
tree | 3e5c7ace83c945bb22fd3cffb397257891b077a8 | |
parent | 9ae540509511178a5a8c73e4e1bf2153c76395b5 (diff) | |
download | vyos-walinuxagent-dfc20cc3f55bea55a4198d8dc22194b14ff883c1.tar.gz vyos-walinuxagent-dfc20cc3f55bea55a4198d8dc22194b14ff883c1.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) |