From fb7e6890d8516618fa3baec0edf84048e2b6601d Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sat, 15 Mar 2025 00:50:34 -0700 Subject: a docker swarm --- playbooks/roles/common/files/authorized_keys | 1 + playbooks/roles/common/files/sshd_config | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 playbooks/roles/common/files/authorized_keys create mode 100644 playbooks/roles/common/files/sshd_config (limited to 'playbooks/roles/common/files') diff --git a/playbooks/roles/common/files/authorized_keys b/playbooks/roles/common/files/authorized_keys new file mode 100644 index 0000000..6d49a82 --- /dev/null +++ b/playbooks/roles/common/files/authorized_keys @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPnLAE5TrdYF8QWCSkvgUp15XKcwQJ9393a/CghSo8dG serve@ansible diff --git a/playbooks/roles/common/files/sshd_config b/playbooks/roles/common/files/sshd_config new file mode 100644 index 0000000..239a0c0 --- /dev/null +++ b/playbooks/roles/common/files/sshd_config @@ -0,0 +1,21 @@ +Include /etc/ssh/sshd_config.d/*.conf + +Port 22 +PermitRootLogin no +PubkeyAuthentication yes +PasswordAuthentication no + +KbdInteractiveAuthentication no + +UsePAM yes + +AllowAgentForwarding yes +X11Forwarding no +PrintMotd no +PrintLastLog yes +TCPKeepAlive yes +ClientAliveInterval 300 +ClientAliveCountMax 1 + +AcceptEnv LANG LC_* +Subsystem sftp /usr/lib/openssh/sftp-server -- cgit v1.2.3-70-g09d2