From 06e0f212a9f944e11851cdad57aa5efd02594370 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Mon, 21 Jan 2019 22:48:09 +0100 Subject: Add common role for basic system setup --- common/files/sshd_config | 12 ++++++++++++ common/files/sudoers | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 common/files/sshd_config create mode 100644 common/files/sudoers (limited to 'common/files') diff --git a/common/files/sshd_config b/common/files/sshd_config new file mode 100644 index 0000000..878b81f --- /dev/null +++ b/common/files/sshd_config @@ -0,0 +1,12 @@ +# Authentication types +ChallengeResponseAuthentication no +PasswordAuthentication no +PubkeyAuthentication yes + +# Authentication details +AuthorizedKeysFile .ssh/authorized_keys +PermitRootLogin no +UsePAM yes + +# Subsystems +Subsystem sftp /usr/lib/ssh/sftp-server diff --git a/common/files/sudoers b/common/files/sudoers new file mode 100644 index 0000000..a85e3db --- /dev/null +++ b/common/files/sudoers @@ -0,0 +1,2 @@ +root ALL=(ALL) NOPASSWD: ALL +%sudo ALL=(ALL) NOPASSWD: ALL -- cgit v1.2.3