From 56f8d4ef727bc60852dce48cd149d5d0b71b7324 Mon Sep 17 00:00:00 2001 From: "jrayhawk+piny.be@omgwallhack.org" Date: Fri, 3 Sep 2010 01:35:18 -0700 Subject: Adding SSH key management commands. --- usr/src/pinyadmin/bin/readkey | 3 +++ usr/src/pinyadmin/bin/writekey | 5 +++++ usr/src/pinyadmin/debian/control | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 usr/src/pinyadmin/bin/readkey create mode 100755 usr/src/pinyadmin/bin/writekey (limited to 'usr/src') 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. -- cgit v1.2.3