summaryrefslogtreecommitdiff
path: root/debian/openssh-server.config
diff options
context:
space:
mode:
Diffstat (limited to 'debian/openssh-server.config')
-rw-r--r--debian/openssh-server.config17
1 files changed, 0 insertions, 17 deletions
diff --git a/debian/openssh-server.config b/debian/openssh-server.config
index 4cd14a753..3cbcf6ea6 100644
--- a/debian/openssh-server.config
+++ b/debian/openssh-server.config
@@ -35,23 +35,6 @@ then
35 fi 35 fi
36fi 36fi
37 37
38key=/etc/ssh/ssh_host_key
39export key
40if [ -n "$version" ] && [ -f $key ] && [ ! -x /usr/bin/ssh-keygen ] &&
41 dpkg --compare-versions "$version" lt 1.2.28
42then
43 # make sure that keys get updated to get rid of IDEA; preinst
44 # actually does the work, but if the old ssh-keygen is not found,
45 # it can't do that -- thus, we tell the user that he must create
46 # a new host key.
47 printf '\0\0' | 3<&0 sh -c \
48 'dd if=$key bs=1 skip=32 count=2 2>/dev/null | cmp -s - /dev/fd/3' || {
49 # this means that bytes 32&33 of the key were not both zero, in which
50 # case the key is encrypted, which we need to fix
51 db_input high ssh/encrypted_host_key_but_no_keygen || true
52 }
53fi
54
55 38
56db_go 39db_go
57 40