Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3747054
D933.id2380.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D933.id2380.diff
View Options
diff --git a/roles/core/sshd/files/sshd_config b/roles/core/sshd/files/sshd_config
new file mode 100644
--- /dev/null
+++ b/roles/core/sshd/files/sshd_config
@@ -0,0 +1,24 @@
+# -------------------------------------------------------------
+# OpenSSH configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2017-02-28
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
+# but this is overridden so installations will only check .ssh/authorized_keys
+AuthorizedKeysFile .ssh/authorized_keys
+
+# Nasqueron servers authentication should only occur through SSH keys
+# but PAM can offer extrea capabilities if needed like OTP.
+PasswordAuthentication no
+ChallengeResponseAuthentication no
+UsePAM yes
+
+# Misc options
+PrintMotd no
+AcceptEnv LANG LC_*
+
+# SFTP
+Subsystem sftp /usr/lib/openssh/sftp-server
diff --git a/roles/core/sshd/init.sls b/roles/core/sshd/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/core/sshd/init.sls
@@ -0,0 +1,11 @@
+# -------------------------------------------------------------
+# Salt — OpenSSH configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2017-02-28
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+/etc/ssh/sshd_config:
+ file.managed:
+ - source: salt://roles/core/sshd/files/sshd_config
diff --git a/top.sls b/top.sls
--- a/top.sls
+++ b/top.sls
@@ -13,6 +13,7 @@
- roles/core/network
- roles/core/motd
- roles/core/rsyslog
+ - roles/core/sshd
'eglide':
- roles/shellserver/users
- roles/shellserver/userland-software
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 00:23 (21 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2248295
Default Alt Text
D933.id2380.diff (1 KB)
Attached To
Mode
D933: OpenSSH configuration
Attached
Detach File
Event Timeline
Log In to Comment