summaryrefslogtreecommitdiff
path: root/rhimport-create-id
blob: 01a19b8acf1693cfe076ad049b9bb3fbc1c9bde1 (plain)
1
2
3
4
5
6
7
8
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"