[root@station1 ~]# vim /etc/ssh/sshd_config
41 LoginGraceTime 2m
42 PermitRootLogin no
43 StrictModes yes
44 MaxAuthTries 3
45 MaxSessions 3
119 ClientAliveInterval 600 ----> client can interact with server for only 10min.
120 ClientAliveCountMax 0
[root@station1 ~]# service sshd restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
41 LoginGraceTime 2m
42 PermitRootLogin no
43 StrictModes yes
44 MaxAuthTries 3
45 MaxSessions 3
Find
ClientAliveInterval
and set to 600
(10 minutes)
as follows:
119 ClientAliveInterval 600 ----> client can interact with server for only 10min.
120 ClientAliveCountMax 0
[root@station1 ~]# service sshd restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
No comments:
Post a Comment