1
0
mirror of https://github.com/rancher/os.git synced 2025-07-16 16:11:03 +00:00

Set UseDNS=no for sshd

This commit is contained in:
Darren Shepherd 2015-04-04 08:52:49 -07:00
parent 6004183bb4
commit 4524251129

View File

@ -71,6 +71,10 @@ cat > /etc/respawn.conf << EOF
/usr/sbin/sshd -D
EOF
if ! grep -q '^UseDNS no' /etc/ssh/sshd_config; then
echo "UseDNS no" >> /etc/ssh/sshd_config
fi
if ! grep -q "$(hostname)" /etc/hosts; then
echo 127.0.1.1 $(hostname) >> /etc/hosts
fi