summaryrefslogtreecommitdiff
path: root/rhimport-create-id
blob: 392998320eede0138e4a7eabac307429a012f3a2 (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"