diff --git a/src/www/system_advanced_admin.php b/src/www/system_advanced_admin.php index bb7f8d67f..27b51548e 100644 --- a/src/www/system_advanced_admin.php +++ b/src/www/system_advanced_admin.php @@ -240,13 +240,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $config['system']['ssh']['noauto'] = 1; $config['system']['ssh']['interfaces'] = !empty($pconfig['sshinterfaces']) ? implode(',', $pconfig['sshinterfaces']) : null; - $config['system']['ssh']['kex'] = !empty($pconfig['ssh-kex']) ? implode(',', $pconfig['ssh-kex']) : null; $config['system']['ssh']['ciphers'] = !empty($pconfig['ssh-ciphers']) ? implode(',', $pconfig['ssh-ciphers']) : null; $config['system']['ssh']['macs'] = !empty($pconfig['ssh-macs']) ? implode(',', $pconfig['ssh-macs']) : null; $config['system']['ssh']['keys'] = !empty($pconfig['ssh-keys']) ? implode(',', $pconfig['ssh-keys']) : null; - if (!empty($pconfig['enablesshd'])) { $config['system']['ssh']['enabled'] = 'enabled'; } elseif (isset($config['system']['ssh']['enabled'])) { @@ -271,7 +269,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { unset($config['system']['user_allow_gen_token']); } - if (!empty($pconfig['sshpasswordauth'])) { $config['system']['ssh']['passwordauth'] = true; } elseif (isset($config['system']['ssh']['passwordauth'])) {