mirror of
https://github.com/elisspace/rtinst.git
synced 2026-10-04 08:06:17 +00:00
Update rtinst.sh
This commit is contained in:
@@ -450,14 +450,14 @@ if [ -z "$(grep "^[# ]*UsePAM" /etc/ssh/sshd_config)" ]; then
|
||||
echo >> /etc/ssh/sshd_config
|
||||
echo "UsePAM yes" >> /etc/ssh/sshd_config
|
||||
else
|
||||
sed -i '/^#\|\s*UsePAM/ c\UsePAM yes' /etc/ssh/sshd_config
|
||||
sed -i '/^#\?UsePAM/ c\UsePAM yes' /etc/ssh/sshd_config
|
||||
fi
|
||||
|
||||
if [ -z "$(grep "^[# ]*UseDNS" /etc/ssh/sshd_config)" ]; then
|
||||
echo >> /etc/ssh/sshd_config
|
||||
echo "UseDNS no" >> /etc/ssh/sshd_config
|
||||
else
|
||||
sed -i '/^#\|\s*UseDNS/ c\UseDNS no' /etc/ssh/sshd_config
|
||||
sed -i '/^#\?UseDNS/ c\UseDNS no' /etc/ssh/sshd_config
|
||||
fi
|
||||
|
||||
if [ -z "$(grep sshuser /etc/group)" ]; then
|
||||
|
||||
Reference in New Issue
Block a user