Disable rsa key from ssh host keys
This commit is contained in:
parent
b7e0ef18c5
commit
f490804106
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue