mirror of
https://github.com/rancher/os.git
synced 2025-07-19 01:16:31 +00:00
Set UseDNS=no for sshd
This commit is contained in:
parent
6004183bb4
commit
4524251129
@ -71,6 +71,10 @@ cat > /etc/respawn.conf << EOF
|
|||||||
/usr/sbin/sshd -D
|
/usr/sbin/sshd -D
|
||||||
EOF
|
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
|
if ! grep -q "$(hostname)" /etc/hosts; then
|
||||||
echo 127.0.1.1 $(hostname) >> /etc/hosts
|
echo 127.0.1.1 $(hostname) >> /etc/hosts
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user