diff options
-rwxr-xr-x | src/conf_mode/service_ssh.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/service_ssh.py b/src/conf_mode/service_ssh.py index 74d962876..759f87bb2 100755 --- a/src/conf_mode/service_ssh.py +++ b/src/conf_mode/service_ssh.py @@ -134,6 +134,8 @@ def generate(ssh): write_file( trusted_user_ca_key, '\n'.join(encode_certificate(c) for c in ca_full_chain) ) + elif os.path.exists(trusted_user_ca_key): + os.unlink(trusted_user_ca_key) render(config_file, 'ssh/sshd_config.j2', ssh) |