Issue #5536 - ability to disable server-side SSH key generation

- Fixes #5536
This commit is contained in:
csalgau 2019-02-14 01:16:57 +02:00
parent 9c532486a2
commit ef7b0fcbd5
11 changed files with 62 additions and 31 deletions

View file

@ -36,6 +36,7 @@ def _sanitize_settings_and_apply_defaults(settings):
_bool_setting(settings, config_keys.generate_authorized_keyfile, 'false')
_bool_setting(settings, config_keys.wrapper_allow_shell, 'false')
_bool_setting(settings, config_keys.enable_debug_logging, 'false')
_bool_setting(settings, config_keys.ssh_key_generator_enabled, 'true')
_string_setting(settings, config_keys.authorized_keys_file_path,
'~/.ssh/authorized_keys_rhodecode',

View file

@ -24,6 +24,7 @@
generate_authorized_keyfile = 'ssh.generate_authorized_keyfile'
authorized_keys_file_path = 'ssh.authorized_keys_file_path'
authorized_keys_line_ssh_opts = 'ssh.authorized_keys_ssh_opts'
ssh_key_generator_enabled = 'ssh.enable_ui_key_generator'
wrapper_cmd = 'ssh.wrapper_cmd'
wrapper_allow_shell = 'ssh.wrapper_cmd_allow_shell'
enable_debug_logging = 'ssh.enable_debug_logging'