From d6b858d610db311c3006e0d44035d23a5c79ecc8 Mon Sep 17 00:00:00 2001 From: Mohammed Amar-Bensaber Date: Tue, 27 Aug 2024 22:22:06 +0200 Subject: openssh-server: init config package --- debian/changelog | 1 + debian/control | 9 +++++++++ debian/openssh-server-config.install | 2 ++ files/etc/ssh/sshd_config.d/custom.conf | 3 +++ files/root/.ssh/authorized_keys | 1 + 5 files changed, 16 insertions(+) create mode 100644 debian/openssh-server-config.install create mode 100644 files/etc/ssh/sshd_config.d/custom.conf create mode 100644 files/root/.ssh/authorized_keys diff --git a/debian/changelog b/debian/changelog index 76462fb..b145ec6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,6 @@ shione-config (0.1.0) UNRELEASED; urgency=low + * Add current openssh-server configuration. * Initial release. -- Mohammed Amar-Bensaber Sun, 24 Aug 2024 16:06:00 +0200 diff --git a/debian/control b/debian/control index 73cf003..caf410c 100644 --- a/debian/control +++ b/debian/control @@ -5,3 +5,12 @@ Maintainer: Mohammed Amar-Bensaber Rules-Requires-Root: no Build-Depends: debhelper (>= 13.11~), config-package-dev (>= 4.15~) Standards-Version: 4.1.0 + +Package: openssh-server-config +Architecture: all +Multi-Arch: foreign +Depends: ${misc:Depends}, openssh-server +Provides: ${diverted-files} +Conflicts: ${diverted-files} +Description: Opinionated openssh-server configuration. + Opinionated openssh-server configuration. diff --git a/debian/openssh-server-config.install b/debian/openssh-server-config.install new file mode 100644 index 0000000..67246a2 --- /dev/null +++ b/debian/openssh-server-config.install @@ -0,0 +1,2 @@ +files/root /root/ +files/etc/ssh /etc/ diff --git a/files/etc/ssh/sshd_config.d/custom.conf b/files/etc/ssh/sshd_config.d/custom.conf new file mode 100644 index 0000000..ac755e6 --- /dev/null +++ b/files/etc/ssh/sshd_config.d/custom.conf @@ -0,0 +1,3 @@ +# To disable tunneled clear text passwords, change to no here! +PasswordAuthentication no +PermitEmptyPasswords no diff --git a/files/root/.ssh/authorized_keys b/files/root/.ssh/authorized_keys new file mode 100644 index 0000000..dd12694 --- /dev/null +++ b/files/root/.ssh/authorized_keys @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsk2gYw+DwDx08WK4MZNb5kLbIpmtgCoU41b8f60CrM renken@shione.net -- cgit v1.2.3