#!/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"