2018-11-11 08:19:04 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -ex
|
2018-10-30 09:17:35 -07:00
|
|
|
|
|
|
|
[[ $(uname) = Linux ]] || exit 1
|
|
|
|
[[ $USER = root ]] || exit 1
|
|
|
|
|
2019-10-17 14:52:24 -07:00
|
|
|
sudo sysctl -w net.core.rmem_default=134217728
|
|
|
|
sudo sysctl -w net.core.rmem_max=134217728
|
2018-10-30 09:17:35 -07:00
|
|
|
|
2019-10-17 14:52:24 -07:00
|
|
|
sudo sysctl -w net.core.wmem_default=134217728
|
|
|
|
sudo sysctl -w net.core.wmem_max=134217728
|
2019-05-08 11:20:06 -07:00
|
|
|
|
|
|
|
echo "MaxAuthTries 60" | sudo tee -a /etc/ssh/sshd_config
|
|
|
|
sudo service sshd restart
|
|
|
|
sudo systemctl restart sshd
|