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:
parent
6004183bb4
commit
4524251129
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user