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.postinst11
1 files changed, 6 insertions, 5 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst
index cf30a181c..02d01f2d8 100644
--- a/debian/openssh-server.postinst
+++ b/debian/openssh-server.postinst
@@ -23,13 +23,14 @@ fix_doc_symlink() {
23} 23}
24 24
25check_idea_key() { 25check_idea_key() {
26 #check for old host_key files using IDEA, which openssh does not support 26 # check for old host_key files using IDEA, which openssh does not
27 # support
27 if [ -f /etc/ssh/ssh_host_key ] ; then 28 if [ -f /etc/ssh/ssh_host_key ] ; then
28 if ssh-keygen -p -N '' -f /etc/ssh/ssh_host_key 2>&1 | \ 29 if ssh-keygen -p -N '' -f /etc/ssh/ssh_host_key 2>&1 | \
29 grep -q 'unknown cipher' 2>/dev/null ; then 30 grep -q 'unknown cipher' 2>/dev/null; then
30 mv /etc/ssh/ssh_host_key /etc/ssh/ssh_host_key.old 31 mv /etc/ssh/ssh_host_key /etc/ssh/ssh_host_key.old
31 mv /etc/ssh/ssh_host_key.pub /etc/ssh/ssh_host_key.pub.old 32 mv /etc/ssh/ssh_host_key.pub /etc/ssh/ssh_host_key.pub.old
32 fi 33 fi
33 fi 34 fi
34} 35}
35 36