first commit
This commit is contained in:
commit
ba848e218d
1001 changed files with 152333 additions and 0 deletions
6
shell/safe/09-timeout.sh
Normal file
6
shell/safe/09-timeout.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
# 3分钟未操作,断掉连接
|
||||
sed -i 's/^#ClientAliveInterval 0/ClientAliveInterval 60/' /etc/ssh/sshd_config
|
||||
sed -i 's/^#ClientAliveCountMax/ClientAliveCountMax/' /etc/ssh/sshd_config
|
||||
sed -i '$a\TMOUT=300\nexport TMOUT' /etc/profile
|
Loading…
Add table
Add a link
Reference in a new issue