summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjrayhawk+piny.be@omgwallhack.org <jrayhawk@piny.svcs.cs.pdx.edu>2010-09-03 01:35:18 -0700
committerjrayhawk+piny.be@omgwallhack.org <jrayhawk@piny.svcs.cs.pdx.edu>2010-09-03 01:35:18 -0700
commit56f8d4ef727bc60852dce48cd149d5d0b71b7324 (patch)
treec677b524b1148be539c4c08f85f508e9aafbe473
parentbd628ee4a22ab90a0ce09f5f86c3528bac37b4af (diff)
downloadpiny-code-56f8d4ef727bc60852dce48cd149d5d0b71b7324.tar.gz
piny-code-56f8d4ef727bc60852dce48cd149d5d0b71b7324.zip
Adding SSH key management commands.
-rw-r--r--architecture/needed_user_facing_infrastructure.mdwn2
-rwxr-xr-xusr/src/pinyadmin/bin/readkey3
-rwxr-xr-xusr/src/pinyadmin/bin/writekey5
-rw-r--r--usr/src/pinyadmin/debian/control2
4 files changed, 10 insertions, 2 deletions
diff --git a/architecture/needed_user_facing_infrastructure.mdwn b/architecture/needed_user_facing_infrastructure.mdwn
index 2dfa223..8c5e431 100644
--- a/architecture/needed_user_facing_infrastructure.mdwn
+++ b/architecture/needed_user_facing_infrastructure.mdwn
@@ -9,7 +9,7 @@ password modification |DONE: /srv/rbin/passwd |TODO: Authen::PAM chauthtok
repo creation, deletion |DONE: /srv/rbin/newrepo, rmrepo, lsrepo |TODO: CGI frontend
repo user management |DONE: /srv/rbin/addaccess, rmaccess, lsaccess |TODO: CGI frontend
[[mailing list addition|mail]] |TODO: /srv/rbin/addlist, dependent on getting sympa up |TODO: CGI frontend
-authorized_keys modification |TODO: cmdlind frontend to cat > ~/.ssh/authorized_keys |TODO: CGI frontend, though i am not convinced anyone would care
+authorized_keys modification |DONE: /srv/rbin/readkey, writekey |TODO: CGI frontend, though i am not convinced anyone would care
disable password auth if ssh key|TODO |Ha ha NEVER
config tweaking |TODO: /srv/rbin/chrepo...? |TODO: CGI frontend
commit access |DONE: git+ssh://piny.be/srv/git/whatever.git |DONE: Ikiwiki+mod-auth-sys-group/mod-auth-pam, though I am told there is a magic hook to allow public editing through git://
diff --git a/usr/src/pinyadmin/bin/readkey b/usr/src/pinyadmin/bin/readkey
new file mode 100755
index 0000000..745bd8d
--- /dev/null
+++ b/usr/src/pinyadmin/bin/readkey
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+/bin/cat ~/.ssh/authorized_keys
diff --git a/usr/src/pinyadmin/bin/writekey b/usr/src/pinyadmin/bin/writekey
new file mode 100755
index 0000000..61a7760
--- /dev/null
+++ b/usr/src/pinyadmin/bin/writekey
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+/bin/mkdir -p ~/.ssh
+/bin/echo Please input all authorized keys. ctrl-d to finish, ctrl-c to abort.
+/usr/bin/sponge ~/.ssh/authorized_keys
diff --git a/usr/src/pinyadmin/debian/control b/usr/src/pinyadmin/debian/control
index ea2b073..7ff9575 100644
--- a/usr/src/pinyadmin/debian/control
+++ b/usr/src/pinyadmin/debian/control
@@ -7,7 +7,7 @@ Standards-version: 3.8.4
Package: pinyadmin
Architecture: all
-Depends: ${perl:Depends}, ${misc:Depends}, libpiny-perl (>= 0.11)
+Depends: ${perl:Depends}, ${misc:Depends}, libpiny-perl (>= 0.11), moreutils
Description: Administrative programs for piny
The command-line programs for day-to-day administrative tasks in the Piny
infrastructure.