diff options
Diffstat (limited to 'etc')
-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"); |