Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set SSH idle timeout exit time by linux

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "linux how to set SSH idle timeout exit time". In daily operation, I believe many people have doubts about how to set SSH idle timeout exit time in linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer "how to set SSH idle timeout exit time in linux". Next, please follow the editor to study!

First, the reason

1. Reduce the risk of unauthorized users accessing ssh sessions of other users

2. Prevent multiple users from logging in at the same time to modify and edit the file

Second, how to do it?

1, edit / etc/ssh/sshd_config

2, set ClientAliveInterval to 300 to 900, that is, 5 to 15 minutes, and set ClientAliveCountMax to between 0 and 3.

ClientAliveInterval 600ClientAliveCountMax 2

10-minute space timeout, and up to two active users log in

3. Expand ssh brute force cracking

Definition: constantly trying to log in to the server with a password through ssh

Basic defense: change the default port number of 22 and set the IP whitelist, which can only be accessed by users of a specific IP.

At this point, the study on "linux how to set the SSH idle timeout exit time" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report