summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/sshd2
-rw-r--r--usr/local/www/system_advanced_admin.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/sshd b/etc/sshd
index 1b54355..4052423 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -94,7 +94,7 @@
$sshconf .= "ClientAliveInterval 30\n";
$sshconf .= "UseDNS no\n";
$sshconf .= "X11Forwarding no\n";
- if($config['system']['ssh']['sshdkeyonly'] <> "") {
+ if(isset($config['system']['ssh']['sshdkeyonly'])) {
$sshconf .= "# Login via Key only\n";
$sshconf .= "PasswordAuthentication no\n";
$sshconf .= "ChallengeResponseAuthentication no\n";
diff --git a/usr/local/www/system_advanced_admin.php b/usr/local/www/system_advanced_admin.php
index ca4cee3..bfa5061 100644
--- a/usr/local/www/system_advanced_admin.php
+++ b/usr/local/www/system_advanced_admin.php
@@ -412,7 +412,7 @@ function prot_change() {
<?php
if ($restart_sshd) {
- killbyname(sshd);
+ killbyname("sshd");
log_error(gettext("secure shell configuration has changed. Stopping sshd."));
if ($config['system']['enablesshd']) {
OpenPOWER on IntegriCloud