* Prevent warnings about protocol version 1 being disabled.
svn path=/nixos/trunk/; revision=11782
This commit is contained in:
parent
c44475b085
commit
828305a5ac
@ -11,7 +11,9 @@ assert permitRootLogin == "yes" ||
|
|||||||
let
|
let
|
||||||
|
|
||||||
sshdConfig = writeText "sshd_config" ''
|
sshdConfig = writeText "sshd_config" ''
|
||||||
|
|
||||||
|
Protocol 2
|
||||||
|
|
||||||
UsePAM yes
|
UsePAM yes
|
||||||
|
|
||||||
${if forwardX11 then "
|
${if forwardX11 then "
|
||||||
@ -45,23 +47,23 @@ in
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
job = "
|
job = ''
|
||||||
description \"SSH server\"
|
description "SSH server"
|
||||||
|
|
||||||
start on network-interfaces/started
|
start on network-interfaces/started
|
||||||
stop on network-interfaces/stop
|
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
|
mkdir -m 0755 -p /etc/ssh
|
||||||
|
|
||||||
if ! test -f /etc/ssh/ssh_host_dsa_key; then
|
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
|
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}
|
||||||
";
|
'';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user