* Prevent warnings about protocol version 1 being disabled.

svn path=/nixos/trunk/; revision=11782
This commit is contained in:
Eelco Dolstra 2008-05-08 14:29:00 +00:00
parent c44475b085
commit 828305a5ac

View File

@ -12,6 +12,8 @@ let
sshdConfig = writeText "sshd_config" ''
Protocol 2
UsePAM yes
${if forwardX11 then "
@ -45,23 +47,23 @@ in
}
];
job = "
description \"SSH server\"
job = ''
description "SSH server"
start on network-interfaces/started
stop on network-interfaces/stop
start on network-interfaces/started
stop on network-interfaces/stop
env LD_LIBRARY_PATH=${nssModulesPath}
env LD_LIBRARY_PATH=${nssModulesPath}
start script
start script
mkdir -m 0755 -p /etc/ssh
if ! test -f /etc/ssh/ssh_host_dsa_key; then
${openssh}/bin/ssh-keygen -t dsa -b 1024 -f /etc/ssh/ssh_host_dsa_key -N ''
${openssh}/bin/ssh-keygen -t dsa -b 1024 -f /etc/ssh/ssh_host_dsa_key -N ""
fi
end script
end script
respawn ${openssh}/sbin/sshd -D -h /etc/ssh/ssh_host_dsa_key -f ${sshdConfig}
";
respawn ${openssh}/sbin/sshd -D -h /etc/ssh/ssh_host_dsa_key -f ${sshdConfig}
'';
}