• Linux使用fail2ban防止暴力破解SSH登陆

    日期:

    1、fail2ban简单介绍 官方站点一句话介绍: fail2ban scans log files like /var/log/pwdfail or /var/log/apache/error_log and bans IP that makes too many password failures. It updates firewall rules to reject the IP address. 简单来说其功能就是...

  • Linux 设置root不能直接ssh登录

    日期:

    为增强安全 先增加一个普通权限的用户: #useradd uploader #passwd uploader //设置密码 生产机器禁止ROOT远程SSH登录: #vi /etc/ssh/sshd_config 把 PermitRootLogin yes 改为 PermitRootLogin no 重启sshd服务 #service sshd restart 远程管理用普通用户...

  • CentOS搭建邮件服务器

    日期:

    虽然没有webmail但是前面的步骤有图介绍,后面webmail可以自己安装即可。 SMTP服务器的构建 ( Postfix ) POP / IMAP 服务器的构建( Dovecot ) -----------------------------分割线----------------------------------- 系统自带的sendmail会和postfix冲...

  • ssh配置公钥私钥登录SecureCRT

    日期:

    在用windows时管理linux服务器时,常会用到SecureCRT、Xshell以及开源的putty。在我工作环境大多都是采用密码认证的方式进行登录。今天对学习了些SecureCRT的密钥登录方式。对比密码认证方式,使用密钥认证登录会有以下几个优点: 1、公钥认证允许使用空密码...

  • SkyMail+动态IP架构邮件服务器-支持windows和linux【备】

    日期:

    SkyMail邮件服务器是国内最优秀的邮件服务器软件,支持各种主流的操作系统,系统非常稳定高效,保证全球收发,支持短信邮件,WAP邮件,邮件监控,邮件归档,内嵌强大的防病毒反垃圾网关,实时免费更新病毒库及垃圾库。 SkyMail25用户终身免费使用。 公司主页...

  • ssh scp 免密码方法

    日期:

    A为本地主机(即用于控制其他主机的机器) ; B为远程主机(即被控制的机器Server), 假如ip为192.168.60.110; A和B的系统都是Linux 在A上运行命令: #ssh-keygen -t rsa (连续三次回车,即在本地生成了公钥和私钥,不设置密码) # ssh root@192.168.60.110mkdir .ssh...

  • awk抓取实际tomcat进程

    日期:

    ps aux | grep tomcat | awk -F/ {print $1,$12} | grep tomcat | awk {print $2,$11} 记录下 已备后续shell脚本调用...

  • nginx启动服务脚本

    日期:

    #chkconfig: 345 60 60 #!/bin/bash # nginx Startup script for the Nginx HTTP Server # it is v.0.0.2 version. # chkconfig: - 85 15 # description: Nginx is a high-performance web and proxy server. # It has a lot of features, but its not for e...

  • CentOS防火墙配置方法

    日期:

    对CentOS防火墙的设置问题,有很多的网友一直存在着不少的疑问,下面,就是我找到设置CentOS防火墙的方法,给大家展示一下。 看了好几个页面CentOS防火墙内容都有错,下面是正确方法: #:/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT #:/sbin/iptab...

  • Apache 配置文件 详解

    日期:

    Apache的配置文件http.conf参数含义详解 Apache的配置由httpd.conf文件配置,因此下面的配置指令都是在httpd.conf文件中修改。 主站点的配置(基本配置) (1) 基本配置: ServerRoot /mnt/software/apache2 #你的apache软件安装的位置。其它指定的目录如果没有...