summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-12 21:06:37 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-12 21:06:37 +0000
commitb2981d7a99c083c3a56a49f246db8e28fb048464 (patch)
tree1e33c89baa083212f03ffdcd61488163c51fa013 /etc
parent8abafff570acd5439739bef8c6fcd290d6325c62 (diff)
downloadpfsense-b2981d7a99c083c3a56a49f246db8e28fb048464.zip
pfsense-b2981d7a99c083c3a56a49f246db8e28fb048464.tar.gz
No need for duplicate starting ssh messages
Diffstat (limited to 'etc')
-rwxr-xr-xetc/sshd15
1 files changed, 7 insertions, 8 deletions
diff --git a/etc/sshd b/etc/sshd
index 11226b2..ddc0964 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -3,20 +3,20 @@
/*
sshd - Modified to work on disk based system
Copyright 2004 Scott K Ullrich
-
+
Original Copyright (C) 2004 Fred Mol <fredmol@xs4all.nl>.
All rights reserved.
-
+
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
-
+
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
-
+
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
-
+
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
@@ -29,9 +29,8 @@
POSSIBILITY OF SUCH DAMAGE.
*/
require_once("config.inc");
-
+
$stderr = fopen("php://stderr", "w");
- fwrite($stderr, "Initializing module ssh...\n");
if (!is_dir("/var/empty")) {
// Home directory of sshd.
@@ -52,7 +51,7 @@
pclose($fd);
$sshConfigDir = "/etc/ssh";
- if (!file_exists("$sshConfigDir/ssh_host_key")) {
+ if (!file_exists("$sshConfigDir/ssh_host_key")) {
system("/usr/bin/ssh-keygen -t rsa1 -N '' -f $sshConfigDir/ssh_host_key");
system("/usr/bin/ssh-keygen -t rsa -N '' -f $sshConfigDir/ssh_host_rsa_key");
system("/usr/bin/ssh-keygen -t dsa -N '' -f $sshConfigDir/ssh_host_dsa_key");
OpenPOWER on IntegriCloud