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:
parent
e29dbd127f
commit
ef178e2f25
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user