#!/bin/bash # run as root if [ $(id -u) != "0" ]; then printf "Error: You must be root to run this tool!\n" exit 1 fi clear # config obkey='helloworld@nbhao' echo "Please input secret key share between server and client:" read -p "(Default : helloworld@nbhao):" obkey if [ "$obkey" = "" ]; then obkey="helloworld@nbhao" fi echo "obkey set to: ${obkey}" # install yum -y install unzip wget http://download.chekiang.info/gongju/obfuscated-openssh.zip unzip obfuscated-openssh.zip cd obfuscated-openssh-master yum -y install gcc make zlib zlib-devel openssl-devel openssl ./configure; make # configure obpath=`pwd` rm -f sshd_config touch sshd_config cat >sshd_config </etc/init.d/obsshd <