Disable rsa key from ssh host keys

This commit is contained in:
Timo Makinen 2020-08-26 22:03:18 +03:00
parent b7e0ef18c5
commit f490804106

View file

@ -45,7 +45,7 @@
line: "#HostKey /etc/ssh/ssh_host_ecdsa_key" line: "#HostKey /etc/ssh/ssh_host_ecdsa_key"
regexp: "^#?HostKey /etc/ssh/ssh_host_ecdsa_key" regexp: "^#?HostKey /etc/ssh/ssh_host_ecdsa_key"
notify: restart sshd notify: restart sshd
- name: enable rsa key from sshd - name: disable rsa key from sshd
lineinfile: lineinfile:
path: /etc/ssh/sshd_config path: /etc/ssh/sshd_config
line: "HostKey /etc/ssh/ssh_host_rsa_key" line: "HostKey /etc/ssh/ssh_host_rsa_key"