more work, get rid of jail stuff, using vps directly

This commit is contained in:
2024-11-16 11:16:54 +01:00
parent 9c2c43730a
commit 5a0e645bed
9 changed files with 64 additions and 7 deletions

View File

@@ -0,0 +1,14 @@
LogLevel INFO
LoginGraceTime 1m
PermitRootLogin no
StrictModes yes
MaxAuthTries 3
MaxSessions 2
PubkeyAuthentication yes
PasswordAuthentication no
KbdInteractiveAuthentication no
AllowAgentForwarding no
AllowTcpForwarding no
GatewayPorts no
X11Forwarding no

View File

@@ -0,0 +1,7 @@
---
- name: start sshd
service:
name: sshd
state: restarted
async: 45
poll: 5

11
roles/ssh/tasks/main.yaml Normal file
View File

@@ -0,0 +1,11 @@
---
- name: copy config file
copy:
src: sshd_config
dest: "/etc/ssh/"
- name: restart sshd
community.general.sysrc:
name: sshd_enable
value: "YES"
notify: restart sshd