Skip to content

Instantly share code, notes, and snippets.

@binford2k
Created September 11, 2013 22:09
Show Gist options
  • Save binford2k/6530480 to your computer and use it in GitHub Desktop.
Save binford2k/6530480 to your computer and use it in GitHub Desktop.
#!/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