服务器常用脚本
快速初始化root用户
sudo -i |
关闭防火墙
iptables -P INPUT ACCEPT |
服务器端超时设置
bash -c "echo 'TCPKeepAlive yes' >> /etc/ssh/sshd_config && echo 'ClientAliveInterval 60' >> /etc/ssh/sshd_config" |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 一只会飞的旺旺!
评论
sudo -i |
iptables -P INPUT ACCEPT |
bash -c "echo 'TCPKeepAlive yes' >> /etc/ssh/sshd_config && echo 'ClientAliveInterval 60' >> /etc/ssh/sshd_config" |