aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/changelog1
-rw-r--r--debian/control9
-rw-r--r--debian/openssh-server-config.install2
-rw-r--r--files/etc/ssh/sshd_config.d/custom.conf3
-rw-r--r--files/root/.ssh/authorized_keys1
5 files changed, 16 insertions, 0 deletions
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 <renken@shione.net> 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 <renken@shione.net>
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