diff options
author | Ben Howard <ben.howard@ubuntu.com> | 2014-11-18 05:40:07 -0700 |
---|---|---|
committer | usd-importer <ubuntu-server@lists.ubuntu.com> | 2014-11-18 12:46:21 +0000 |
commit | 4b9414f166564f291049883926319367c9867b98 (patch) | |
tree | 7df6a99a4a41f84e5289091d4181020d4f857c47 /waagent | |
parent | 24d6d2dd68d85bfd69c9fc5c54fe9aaa056cc775 (diff) | |
download | vyos-walinuxagent-4b9414f166564f291049883926319367c9867b98.tar.gz vyos-walinuxagent-4b9414f166564f291049883926319367c9867b98.zip |
Fix for broken sshd configuration (LP: #1305418)
Gbp-Pq: sshd_config_newline_fix.patch.
Diffstat (limited to 'waagent')
-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) |