Logout the user from ssh after 15 minutes of inactivity

Posted In SSH/Telnet - By Tum. On Tuesday, September 11th, 2007 With 0 Comments

เพื่อความปลอดภัยจากการใช้งาน ssh เราสามารถตั้งค่าให้ระบบ logout user ที่ไม่ได้ใช้งานหลังจาก 15 นาทีผ่านไปแล้ว โดยการแก้ไขตามคำสั่งด้านล่าง


#vi /etc/ssh/sshd_config

และหาบรรทัดและแก้ไขให้เหมือนข้อความตามด้านล่าง

ClientAliveInterval 15m # 15 minutes
ClientAliveCountMax 0 # 0 times

จากนั้นพิมพ์
#service sshd restart

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

*