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 | |
# Move SSH access keys from root into debian | |
cp -a /root/.ssh /home/debian/.ssh | |
chown -R debian:debian /home/debian/.ssh | |
echo "" > /root/.ssh/authorized_keys | |
echo "[+] Reconfigured user permissions!" | |
# Disallow sudo usage for debian | |
mv /etc/sudoers.d/debian-cloud-init /etc/sudoers.d/debian-cloud-init~ |
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
# Standard SSH configuration by hartek from Follow the White Rabbit (https://www.fwhibbit.es) | |
# Network configuration | |
Port 22 # Change this maybe | |
AddressFamily inet | |
ListenAddress 0.0.0.0 | |
#ListenAddress :: | |
# Authentication | |
LoginGraceTime 10 |