diff options
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r-- | debian/openssh-server.postinst | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst index fa8ce6bdc..9beb373b7 100644 --- a/debian/openssh-server.postinst +++ b/debian/openssh-server.postinst | |||
@@ -194,27 +194,10 @@ Port 22 | |||
194 | # Use these options to restrict which interfaces/protocols sshd will bind to | 194 | # Use these options to restrict which interfaces/protocols sshd will bind to |
195 | #ListenAddress :: | 195 | #ListenAddress :: |
196 | #ListenAddress 0.0.0.0 | 196 | #ListenAddress 0.0.0.0 |
197 | EOF | ||
198 | db_get ssh/protocol2_only | ||
199 | if [ "$RET" = "false" ]; then | ||
200 | cat <<EOF >> /etc/ssh/sshd_config | ||
201 | Protocol 2,1 | ||
202 | # HostKeys for protocol version 1 | ||
203 | HostKey /etc/ssh/ssh_host_key | ||
204 | # HostKeys for protocol version 2 | ||
205 | HostKey /etc/ssh/ssh_host_rsa_key | ||
206 | HostKey /etc/ssh/ssh_host_dsa_key | ||
207 | EOF | ||
208 | else | ||
209 | cat <<EOF >> /etc/ssh/sshd_config | ||
210 | Protocol 2 | 197 | Protocol 2 |
211 | # HostKeys for protocol version 2 | 198 | # HostKeys for protocol version 2 |
212 | HostKey /etc/ssh/ssh_host_rsa_key | 199 | HostKey /etc/ssh/ssh_host_rsa_key |
213 | HostKey /etc/ssh/ssh_host_dsa_key | 200 | HostKey /etc/ssh/ssh_host_dsa_key |
214 | EOF | ||
215 | fi | ||
216 | |||
217 | cat <<EOF >> /etc/ssh/sshd_config | ||
218 | #Privilege Separation is turned on for security | 201 | #Privilege Separation is turned on for security |
219 | UsePrivilegeSeparation yes | 202 | UsePrivilegeSeparation yes |
220 | 203 | ||