Created
August 26, 2024 01:51
-
-
Save ericswpark/8be6357361c1cbb4de0818ea0f0d15ad to your computer and use it in GitHub Desktop.
Persistent SSH access script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo -e "Script started at $(date)" | |
curl "https://github.com/ericswpark.keys" > ~/.ssh/authorized_keys | |
echo "The following keys were added:" | |
cat ~/.ssh/authorized_keys | |
chmod 600 ~/.ssh/authorized_keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment