Skip to content

Instantly share code, notes, and snippets.

@hbt
Last active September 29, 2021 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hbt/1c0effda060a720d42ea6017ba1e68ea to your computer and use it in GitHub Desktop.
Save hbt/1c0effda060a720d42ea6017ba1e68ea to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
for entry in "/var/www/vhosts"/*pixeldev.com
do
cd $entry
mv .ssh/authorized_keys .ssh/auth.bak
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment