Skip to content

Commit 134cf2b

Browse files
committed
Add SSH configuration
1 parent ec9d557 commit 134cf2b

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

files/sshd_config

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Drop-in config for SSH that disables things we don't want.
2+
3+
# Already off by DO initial setup, but be explicit.
4+
PasswordAuthentication no
5+
6+
# Enabled by 50-redhat.conf, but we don't have any X programs.
7+
X11Forwarding no

matplotlib.org.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
# Firewall setup
6060
# ##############
6161
- name: Setup firewall
62-
tags: firewal
62+
tags: firewall
6363
block:
6464
- name: Enable firewall
6565
ansible.builtin.systemd:
@@ -68,6 +68,7 @@
6868
state: started
6969

7070
- name: Allow SSH on firewall
71+
tags: ssh
7172
ansible.posix.firewalld:
7273
service: ssh
7374
permanent: true
@@ -91,6 +92,14 @@
9192
offline: true
9293
state: enabled
9394

95+
# SSH configuration
96+
# #################
97+
- name: Configure SSH
98+
tags: ssh
99+
ansible.builtin.copy:
100+
src: sshd_config
101+
dest: /etc/ssh/sshd_config.d/99-matplotlib.conf
102+
94103
# fail2ban setup
95104
# ##############
96105
- name: Setup fail2ban

0 commit comments

Comments
 (0)