summaryrefslogtreecommitdiff
path: root/rhimport-create-id
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2010-04-13 13:41:28 (GMT)
committerChristian Pointner <equinox@helsinki.at>2010-04-13 13:41:28 (GMT)
commitfb62d1d3074984a47ed5cf9b34e85fc2a6daec35 (patch)
tree659e26c5347ebb1d0e48521527fb4688d06f030d /rhimport-create-id
parentc9635c2b0f74a639f33460cb933399684ef868ab (diff)
added rhimport create id tool
Diffstat (limited to 'rhimport-create-id')
-rwxr-xr-xrhimport-create-id9
1 files changed, 9 insertions, 0 deletions
diff --git a/rhimport-create-id b/rhimport-create-id
new file mode 100755
index 0000000..3929983
--- /dev/null
+++ b/rhimport-create-id
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+KEYDIR="$HOME/.rhimport"
+KEYFILE=$KEYDIR/import.key
+
+mkdir -p $KEYDIR
+ssh-keygen -f $KEYFILE -t dsa
+chmod 600 $KEYFILE
+cat $KEYFILE.pub | ssh rhadmin@airplay "sudo /usr/local/bin/rhimport-add-id" \ No newline at end of file