summaryrefslogtreecommitdiffstats
path: root/roles/ssh/tasks/main.yml
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-07-16 16:45:53 +0200
committerAhmed Abdelhalim <[email protected]>2026-07-16 17:03:28 +0200
commit4b8654a2b0edc90798372cba357f23b15b51657c (patch)
treee7f176ccc1a3f32d4ee4ed8ffc2f5fb7f8aa6109 /roles/ssh/tasks/main.yml
parent756dc388bedf97b68449e919a6730788f730c7b8 (diff)
Add pve-ssh support with hardening
Diffstat (limited to 'roles/ssh/tasks/main.yml')
-rw-r--r--roles/ssh/tasks/main.yml15
1 files changed, 0 insertions, 15 deletions
diff --git a/roles/ssh/tasks/main.yml b/roles/ssh/tasks/main.yml
index 7df9efe8..f60c2640 100644
--- a/roles/ssh/tasks/main.yml
+++ b/roles/ssh/tasks/main.yml
@@ -8,18 +8,6 @@
name: "{{ ssh_package }}"
state: "present"
-- name: "Generate /etc/ssh/ RSA host key"
- become: true
- ansible.builtin.command:
- cmd: "ssh-keygen -q -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key -C '' -N ''"
- creates: "/etc/ssh/ssh_host_rsa_key"
-
-- name: "Generate /etc/ssh/ ECDSA host key"
- become: true
- ansible.builtin.command:
- cmd: "ssh-keygen -q -t ecdsa -b 521 -f /etc/ssh/ssh_host_ecdsa_key -C '' -N ''"
- creates: "/etc/ssh/ssh_host_ecdsa_key"
-
- name: "Generate /etc/ssh/ Ed25519 host key"
become: true
ansible.builtin.command:
@@ -52,9 +40,6 @@
UsePAM no # default installation is yes
PrintMotd yes # default installation is no
- # Host key configurations
- HostKey /etc/ssh/ssh_host_rsa_key
- HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
# Default sshd_config