diff --git a/kallithea/controllers/admin/my_account.py b/kallithea/controllers/admin/my_account.py --- a/kallithea/controllers/admin/my_account.py +++ b/kallithea/controllers/admin/my_account.py @@ -276,6 +276,7 @@ class MyAccountController(BaseController new_ssh_key = SshKeyModel().create(request.authuser.user_id, description, public_key) Session().commit() + SshKeyModel().write_authorized_keys() h.flash(_("SSH key %s successfully added") % new_ssh_key.fingerprint, category='success') except SshKeyModelException as errors: h.flash(errors.message, category='error') @@ -287,6 +288,7 @@ class MyAccountController(BaseController try: SshKeyModel().delete(public_key, request.authuser.user_id) Session().commit() + SshKeyModel().write_authorized_keys() h.flash(_("SSH key successfully deleted"), category='success') except SshKeyModelException as errors: h.flash(errors.message, category='error')