diff options
author | jjakob <jernej.jakob@gmail.com> | 2019-10-19 03:19:54 +0200 |
---|---|---|
committer | jjakob <jernej.jakob@gmail.com> | 2019-10-19 03:19:54 +0200 |
commit | 9f1cc848d194d9b85d839ef847df5062d56941c2 (patch) | |
tree | c26230dd68d7a50870e13a997234c951a373223e /debian | |
parent | 001239d85271401c2ae33c6a6cbe4df7b93b5009 (diff) | |
download | vyatta-cfg-system-9f1cc848d194d9b85d839ef847df5062d56941c2.tar.gz vyatta-cfg-system-9f1cc848d194d9b85d839ef847df5062d56941c2.zip |
T1743: do not generate ssh rsa1 host keys
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/vyatta-cfg-system.postinst.in | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in index 18e84055..708251b3 100755 --- a/debian/vyatta-cfg-system.postinst.in +++ b/debian/vyatta-cfg-system.postinst.in @@ -60,12 +60,6 @@ if [ "$sysconfdir" != "/etc" ]; then sed -i 's/^#PasswordAuthentication/PasswordAuthentication/' /etc/ssh/sshd_config sed -i '/^PasswordAuthentication/s/no/yes/' /etc/ssh/sshd_config - # add HostKeys for protocol version 1 - if ! grep -q '^HostKey /etc/ssh/ssh_host_key' /etc/ssh/sshd_config; then - echo '# HostKey for protocol version 1' >> /etc/ssh/sshd_config - echo 'HostKey /etc/ssh/ssh_host_key' >> /etc/ssh/sshd_config - fi - # add UseDNS line sed -i '/^UseDNS/d' /etc/ssh/sshd_config echo 'UseDNS yes' >>/etc/ssh/sshd_config |