diff options
Diffstat (limited to 'debian/openssh-server.config')
-rw-r--r-- | debian/openssh-server.config | 17 |
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 |
36 | fi | 36 | fi |
37 | 37 | ||
38 | key=/etc/ssh/ssh_host_key | ||
39 | export key | ||
40 | if [ -n "$version" ] && [ -f $key ] && [ ! -x /usr/bin/ssh-keygen ] && | ||
41 | dpkg --compare-versions "$version" lt 1.2.28 | ||
42 | then | ||
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 | } | ||
53 | fi | ||
54 | |||
55 | 38 | ||
56 | db_go | 39 | db_go |
57 | 40 | ||