diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-12 21:06:37 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-12 21:06:37 +0000 |
commit | b2981d7a99c083c3a56a49f246db8e28fb048464 (patch) | |
tree | 1e33c89baa083212f03ffdcd61488163c51fa013 /etc/sshd | |
parent | 8abafff570acd5439739bef8c6fcd290d6325c62 (diff) | |
download | pfsense-b2981d7a99c083c3a56a49f246db8e28fb048464.zip pfsense-b2981d7a99c083c3a56a49f246db8e28fb048464.tar.gz |
No need for duplicate starting ssh messages
Diffstat (limited to 'etc/sshd')
-rwxr-xr-x | etc/sshd | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -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"); |