summaryrefslogtreecommitdiffstats
path: root/etc/sshd
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-06-23 18:35:49 +0000
committerErmal <eri@pfsense.org>2010-06-23 18:35:49 +0000
commit56c9163122699bcf9e2487af0d0df13df5421d20 (patch)
treea6a50bcfe911d4af036f31584866fb77c77e228c /etc/sshd
parent2e591a5db12e188ccff9ad6c53a0002075f9f053 (diff)
downloadpfsense-56c9163122699bcf9e2487af0d0df13df5421d20.zip
pfsense-56c9163122699bcf9e2487af0d0df13df5421d20.tar.gz
Pass correct argument to killbyname and correctly check for sshdkeyonly toggle. Ticket #691
Diffstat (limited to 'etc/sshd')
-rwxr-xr-xetc/sshd2
1 files changed, 1 insertions, 1 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";
OpenPOWER on IntegriCloud