fix re-adoption
This commit is contained in:
parent
31d6f096cf
commit
20f51f3aba
@ -35,6 +35,7 @@ if [[ "$AMIROOT" = "" ]]; then
|
||||
fi
|
||||
|
||||
PUB=$(db configuration getprop client-manager ManagementKeyFile)
|
||||
ssh-keygen -R "${HOST}"
|
||||
cat $PUB | \
|
||||
sshpass -p "${PASS}" ssh -t -o StrictHostKeyChecking=no "${USER}@${HOST}" "echo '${PASS}' | sudo -S mkdir /root/.ssh >/dev/null ; sudo tee -a /root/.ssh/authorized_keys"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user