From 1783d7b8ff4f3585d70d3e4f02c7eedae2af4bfc Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sun, 24 Sep 2017 01:51:10 +0100 Subject: Workaround lack of mga6 support in our configs --- modules/openssh/templates/sshd_config | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/openssh/templates') diff --git a/modules/openssh/templates/sshd_config b/modules/openssh/templates/sshd_config index 76b11bec..039467a7 100644 --- a/modules/openssh/templates/sshd_config +++ b/modules/openssh/templates/sshd_config @@ -22,7 +22,12 @@ HostKey /etc/ssh/ssh_host_key # HostKeys for protocol version 2 HostKey /etc/ssh/ssh_host_rsa_key +<% if @hostname == 'neru' then %> +HostKey /etc/ssh/ssh_host_ecdsa_key +HostKey /etc/ssh/ssh_host_ed25519_key +<% else %> HostKey /etc/ssh/ssh_host_dsa_key +<% end %> # Lifetime and size of ephemeral version 1 server key #KeyRegenerationInterval 1h @@ -114,7 +119,11 @@ UsePrivilegeSeparation yes #Banner none # override default of no subsystems +<% if @hostname == 'neru' then %> +Subsystem sftp /usr/libexec/openssh/sftp-server +<% else %> Subsystem sftp <%= path_to_sftp %>/sftp-server +<% end %> # Example of overriding settings on a per-user basis #Match User anoncvs -- cgit v1.2.1