This file contains 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 | |
if [ "$EUID" -ne 0 ]; then | |
echo "Please run as root" | |
exit | |
fi | |
read -p 'Username: ' user | |
read -p "ssh Public key for $user: " userpub | |
echo "The rest of the details will now be taken care of the program" | |
read -p 'Continue? [Y/n]: ' usercont |