Skip to content

SSH authentication options

Ninos requested to merge (removed):ssh-auth-options into stable-3.1

See #4622 (closed)

May password or ssh_rsa-field check is not needed (following code), but otherwise users could bypass settings.

$system_config = $app->getconf->get_global_config();
if($system_config['misc']['ssh_authentication'] == 'password') {
	$this->dataRecord['ssh_rsa'] = null;
}

if($system_config['misc']['ssh_authentication'] == 'key') {
	$this->dataRecord['password'] = null;
	$this->dataRecord['repeat_password'] = null;
}

PS: I just added german and english translations.

Merge request reports