Remove hardcoded SSH key

Removes hardcoded ~/.ssh/id_rsa_virt_power.pub when adding key
to authorized_keys.

Change-Id: I8e3ffd32ae205dd09e3dd16afaf29e6559db367e
This commit is contained in:
Martin Mágr 2015-06-22 13:53:20 +02:00
parent e29dbd127f
commit ef178e2f25
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ fi
# make the local id_rsa_virt_power.pub be in ``.ssh/authorized_keys`` before
# that is copied into images via ``local-config``
if ! grep -qF "$(cat ${SSH_KEY}.pub)" ~/.ssh/authorized_keys; then
cat ~/.ssh/id_rsa_virt_power.pub >> ~/.ssh/authorized_keys
cat ${SSH_KEY}.pub >> ~/.ssh/authorized_keys
chmod 0600 ~/.ssh/authorized_keys
fi