summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/crontab6
-rw-r--r--examples/ssh_config4
-rw-r--r--examples/sshd_config6
3 files changed, 16 insertions, 0 deletions
diff --git a/examples/crontab b/examples/crontab
new file mode 100644
index 0000000..ab26c9d
--- /dev/null
+++ b/examples/crontab
@@ -0,0 +1,6 @@
+# example Monkeysphere cron job:
+
+# Hourly: update the per-user authorized_keys in /var based on
+# ~/.monkeysphere/authorized_user_ids
+
+36 * * * * root /usr/sbin/monkeysphere-authentication update-users
diff --git a/examples/ssh_config b/examples/ssh_config
new file mode 100644
index 0000000..b6746a1
--- /dev/null
+++ b/examples/ssh_config
@@ -0,0 +1,4 @@
+# Monkeysphere ssh config stanza (for ~/.ssh/config or /etc/ssh_config)
+# This checks for host keys in the OpenPGP WoT:
+Host *
+ProxyCommand monkeysphere ssh-proxycommand %h %p
diff --git a/examples/sshd_config b/examples/sshd_config
new file mode 100644
index 0000000..30368ca
--- /dev/null
+++ b/examples/sshd_config
@@ -0,0 +1,6 @@
+# Monkeysphere sshd config (for use in /etc/sshd_config)
+# This checks for user keys in the OpenPGP WoT:
+AuthorizedKeysFile /var/lib/monkeysphere/authorized_keys/%u
+
+# be sure to also add a scheduled job to update these keys
+# (see the example cronjob)