Skip to content

Commit

Permalink
fix: rm of authorized keys
Browse files Browse the repository at this point in the history
  • Loading branch information
venkatamutyala authored Sep 28, 2024
1 parent 32e34f6 commit 4d385dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions os-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ sudo cloud-init clean --machine-id --seed --logs
sudo rm -rvf /var/lib/cloud/instances /etc/machine-id /var/lib/dbus/machine-id /var/log/cloud-init*
# AWS seems to have issues if the /etc/machine-id file is removed
sudo touch /etc/machine-id
sudo rm /root/.ssh/authorized_keys | true
sudo rm /home/admin/.ssh/authorized_keys | true
sudo rm /root/.ssh/authorized_keys || true
sudo rm /home/admin/.ssh/authorized_keys || true

0 comments on commit 4d385dd

Please sign in to comment.