diff --git a/files/entrypoint b/files/entrypoint index 9c3d6e35..3316a085 100755 --- a/files/entrypoint +++ b/files/entrypoint @@ -71,6 +71,9 @@ if [ ! -f "$userConfFinalPath" ]; then if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then ssh-keygen -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key -N '' fi + if [ ! -f /etc/ssh/ssh_host_ecdsa_key ]; then + ssh-keygen -t ecdsa -b 521 -f /etc/ssh/ssh_host_ecdsa_key -N '' + fi # Restrict access from other users chmod 600 /etc/ssh/ssh_host_ed25519_key || true diff --git a/files/sshd_config b/files/sshd_config index 1308c8b2..01f89a7f 100644 --- a/files/sshd_config +++ b/files/sshd_config @@ -3,6 +3,7 @@ Protocol 2 HostKey /etc/ssh/ssh_host_ed25519_key HostKey /etc/ssh/ssh_host_rsa_key +HostKey /etc/ssh/ssh_host_ecdsa_key # Faster connection # See: https://github.com/atmoz/sftp/issues/11