mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
12 lines
281 B
Plaintext
12 lines
281 B
Plaintext
global $config;
|
|
echo "Starting enablesshd...";
|
|
require("config.inc");
|
|
echo ".";
|
|
$config = parse_config(true);
|
|
echo ".";
|
|
$config['system']['enablesshd'] = true;
|
|
echo ".";
|
|
write_config("pfSsh.php enabled sshd");
|
|
echo "\nEnabling SSHD, please wait...";
|
|
exec("/etc/sshd");
|
|
echo "\n\n"; |