From 4ea75dfcbe279dd5b59775a343ac930ca5bf01f4 Mon Sep 17 00:00:00 2001 From: Ivan Marban Date: Wed, 6 Jan 2016 10:26:37 +0100 Subject: [PATCH] Remove RSA1 keys as only SSH version 2 is used --- docker/s6/openssh/setup | 4 ---- docker/sshd_config | 1 - 2 files changed, 5 deletions(-) diff --git a/docker/s6/openssh/setup b/docker/s6/openssh/setup index 6df5ef7050..5333d3c06e 100755 --- a/docker/s6/openssh/setup +++ b/docker/s6/openssh/setup @@ -1,10 +1,6 @@ #!/bin/sh # Check if host keys are present, else create them -if ! test -f /data/ssh/ssh_host_key; then - ssh-keygen -q -f /data/ssh/ssh_host_key -N '' -t rsa1 -fi - if ! test -f /data/ssh/ssh_host_rsa_key; then ssh-keygen -q -f /data/ssh/ssh_host_rsa_key -N '' -t rsa fi diff --git a/docker/sshd_config b/docker/sshd_config index 9b62f1486a..30c4e23c08 100644 --- a/docker/sshd_config +++ b/docker/sshd_config @@ -4,7 +4,6 @@ ListenAddress 0.0.0.0 ListenAddress :: Protocol 2 LogLevel INFO -HostKey /data/ssh/ssh_host_key HostKey /data/ssh/ssh_host_rsa_key HostKey /data/ssh/ssh_host_dsa_key HostKey /data/ssh/ssh_host_ecdsa_key