summaryrefslogtreecommitdiff
path: root/debian/openssh-server.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r--debian/openssh-server.postinst17
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
197EOF
198 db_get ssh/protocol2_only
199if [ "$RET" = "false" ]; then
200 cat <<EOF >> /etc/ssh/sshd_config
201Protocol 2,1
202# HostKeys for protocol version 1
203HostKey /etc/ssh/ssh_host_key
204# HostKeys for protocol version 2
205HostKey /etc/ssh/ssh_host_rsa_key
206HostKey /etc/ssh/ssh_host_dsa_key
207EOF
208else
209 cat <<EOF >> /etc/ssh/sshd_config
210Protocol 2 197Protocol 2
211# HostKeys for protocol version 2 198# HostKeys for protocol version 2
212HostKey /etc/ssh/ssh_host_rsa_key 199HostKey /etc/ssh/ssh_host_rsa_key
213HostKey /etc/ssh/ssh_host_dsa_key 200HostKey /etc/ssh/ssh_host_dsa_key
214EOF
215fi
216
217 cat <<EOF >> /etc/ssh/sshd_config
218#Privilege Separation is turned on for security 201#Privilege Separation is turned on for security
219UsePrivilegeSeparation yes 202UsePrivilegeSeparation yes
220 203