diff options
author | Ben Howard <ben.howard@ubuntu.com> | 2014-04-10 14:04:44 -0600 |
---|---|---|
committer | usd-importer <ubuntu-server@lists.ubuntu.com> | 2014-04-10 21:08:32 +0000 |
commit | 5cf5793d5fcad94d51671d869572248ae90fc375 (patch) | |
tree | 978547146973a99dc5d0c754e0cedd63e511176e | |
parent | 4bdc1e1ee5a6b4c571b936fc389d5be972702145 (diff) | |
download | vyos-walinuxagent-5cf5793d5fcad94d51671d869572248ae90fc375.tar.gz vyos-walinuxagent-5cf5793d5fcad94d51671d869572248ae90fc375.zip |
Fix for broken sshd configuration (LP: #1305418)
Gbp-Pq: sshd_config_newline_fix.patch.
-rwxr-xr-x | waagent | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3353,7 +3353,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) |