Created
September 11, 2013 22:09
-
-
Save binford2k/6530480 to your computer and use it in GitHub Desktop.
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/sh | |
# | |
# This script will be executed *after* all the other init scripts. | |
# You can put your own initialization stuff in here if you don't | |
# want to do the full Sys V style init stuff. | |
touch /var/lock/subsys/local | |
if [ ! -d /root/.ssh ] ; then | |
mkdir -p /root/.ssh | |
chmod 0700 /root/.ssh | |
restorecon /root/.ssh | |
fi | |
# bz 707364 | |
if [ ! -f /etc/blkid/blkid.tab ] ; then | |
blkid /dev/xvda &>/dev/null | |
fi | |
cat <<EOL >> /etc/ssh/sshd_config | |
UseDNS no | |
PermitRootLogin without-password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment