summaryrefslogtreecommitdiff
path: root/src/monkeysphere-authentication-keys-for-user
diff options
context:
space:
mode:
authorJameson Rollins <jrollins@finestructure.net>2010-07-04 00:06:35 -0400
committerJameson Rollins <jrollins@finestructure.net>2010-07-04 00:13:02 -0400
commitca88f1bccc252571c1f40ed84c40ea7ed4d7db20 (patch)
tree0d0e152c770715d49d5fc9d297f7672dc275485a /src/monkeysphere-authentication-keys-for-user
parentc74075ae34bf6dd035f42ce044046e6f273ae73d (diff)
add keys-for-user subcommand to monkeysphere-authentication
This subcommand will output all valid key for a given user. The user's authorized_user_ids file will be read for OpenPGP user IDs, one per line. The ssh-formated RSA keys will be output to stdout. Also included is a simple script that takes the user as it's one argument and exec's this command. This is something that would be suitable for the proposed sshd AuthorizedKeysCommand.
Diffstat (limited to 'src/monkeysphere-authentication-keys-for-user')
-rwxr-xr-xsrc/monkeysphere-authentication-keys-for-user2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/monkeysphere-authentication-keys-for-user b/src/monkeysphere-authentication-keys-for-user
new file mode 100755
index 0000000..fb589ea
--- /dev/null
+++ b/src/monkeysphere-authentication-keys-for-user
@@ -0,0 +1,2 @@
+#!/usr/bin/env sh
+exec monkeysphere-authentication keys-for-user "$@"