pfsense/etc/phpshellsessions/enablesshd
2010-05-22 23:18:12 -04:00

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";