update
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -14,7 +14,7 @@ configure(){
|
|||||||
echo -e "APT::Install-Recommends "0";
|
echo -e "APT::Install-Recommends "0";
|
||||||
APT::Install-Suggests "0";" | tee /etc/apt/apt.conf.d/01norecommend >/dev/null
|
APT::Install-Suggests "0";" | tee /etc/apt/apt.conf.d/01norecommend >/dev/null
|
||||||
|
|
||||||
sed -i "s/.*PermitRootLogin.*/PermitRootLogin prohibit-password/g" /etc/ssh/sshd_config
|
sed -i "s/.*PermitRootLogin.*/PermitRootLogin prohibit-password/g" /etc/ssh/sshd_config || true
|
||||||
sed -i "s/.*Host \*.*/Host \*/g" /etc/ssh/ssh_config
|
sed -i "s/.*Host \*.*/Host \*/g" /etc/ssh/ssh_config
|
||||||
sed -i "/.*HashKnownHosts.*/d" /etc/ssh/ssh_config
|
sed -i "/.*HashKnownHosts.*/d" /etc/ssh/ssh_config
|
||||||
sed -i "/.*HostKeyAlgorithms.*/d" /etc/ssh/ssh_config
|
sed -i "/.*HostKeyAlgorithms.*/d" /etc/ssh/ssh_config
|
||||||
|
|||||||
Reference in new issue
Block a user