diff options
author | Ben Howard <ben.howard@ubuntu.com> | 2014-08-29 10:11:12 -0600 |
---|---|---|
committer | usd-importer <ubuntu-server@lists.ubuntu.com> | 2014-08-29 16:58:19 +0000 |
commit | 2dc6bc53e28025b23cce4fece19461bcdc6d74b0 (patch) | |
tree | eca03f8b15b2e5dc3ac8e70f131a77410cee37d5 | |
parent | 9b9196e0d54e9a381d824cb066f6d5caf075bea1 (diff) | |
download | vyos-walinuxagent-2dc6bc53e28025b23cce4fece19461bcdc6d74b0.tar.gz vyos-walinuxagent-2dc6bc53e28025b23cce4fece19461bcdc6d74b0.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) |