首先安装依赖:

yum install zlib-devel openssl-devel pam-devel gcc make

然后手动编译安装:

  1. wget -O ofcssh.tar.gz https://github.com/brl/obfuscated-openssh/tarball/master
  2. tar xvf ofcssh.tar.gz
  3. cd到目录中,并执行./configure --with-pam --prefix=/opt
  4. make && make install
  5. cp contrib/sshd.pam.generic /etc/pam.d/sshd
  6. (64位系统可选操作)修改/etc/pam.d/sshd里/lib为/lib64

增加Fedora提供的YUM EPEL源(提供更多Cent默认不带的软件包,参考http://fedoraproject.org/wiki/EPEL)

rpm -Uvh http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpm

yum install pam_mysql libnss-mysql

配置参考 https://github.com/cyfdecyf/cyf-util-conf/blob/master/conf/gfw.pac

樱花VPS: 登录地址:https://secure.sakura.ad.jp/vpscontrol/ 用户名:49.212.194.108 密码:********

封禁IP(通过iptables封禁,这样连日志都不会产生,爽了!)

查看已有规则:iptables –list 封禁:iptables -I input -s x.x.x.x -j DROP 解封:iptables -D input -s x.x.x.x -j DROP