mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-26 21:30:55 +08:00
translating
This commit is contained in:
parent
f5a21bd49d
commit
e89e7c26b6
@ -1,11 +1,14 @@
|
||||
theo-l translating
|
||||
How To Get Email Alerts for SSH Login on Linux Server
|
||||
在Linux服务器上如何为SSH登陆获取Email警告
|
||||
================================================================================
|
||||
![](http://www.ehowstuff.com/wp-content/uploads/2015/03/fail2ban-security.jpg)
|
||||
|
||||
Enable SSH server on a virtual private server (VPS) will expose the server to the internet and provide opportunities for hacking activities, especially when VPS still using root as a primary access. VPS should be configured with a email alert automatically to each successful login attempts via SSH server . VPS server owner shall be notified of any SSH server access log, such as who, when and which source IP address. This is an important security concern for server owners to protect the server from unknown login attempts. This is because if hackers use brute force to log into your VPS via ssh then it can be very dangerous. In this article, I will explain how to set up an email alert to all SSH login users on linux CentOS 6, CentOS 7, RHEL 6 and RHEL 7.
|
||||
让SSH服务器在虚拟私有服务器(VPS)上生效会使得该服务器暴露到互联网中并为黑客活动提供了机会,尤其时当VPS还将root作为主要访问时. VPS应该为每次通过SSH服务器成功登陆尝试配置一个自动的email警告. VPS的服务器所有者应该在任何的SSH服务器访问时得到通知,例如登陆者,登陆时间以及IP地址等信息.这是一个对于服务器拥有者保护服务器避免未知登陆尝试的非常重要的安全关注点.因为如果黑客使用暴力破解方式通过SSH来登陆你的VPS,那么后果很严重.在本文中,我会解释如何在CentOS 6, CentOS 7, RHEL 6 和 RHEL 7上为所有的SSH用户登陆设置一个email警告.
|
||||
|
||||
1. Login to your server as root user :
|
||||
1. 使用root用户登陆到你的服务器:
|
||||
|
||||
2. Configure at alert from source global definitions (/etc/bashrc). This will enabled for root and normal users :
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user