用Obfuscated-OpenSSH解决SSH代理屏蔽问题

Here is obfuscated ssh deploy instructions for ubuntu:

apt-get update
apt-get -y install gcc
apt-get -y install build-essential
apt-get -y install zlib1g-dev
apt-get -y install libssl-dev
wget https://wget.5752.me/Computer/code/ofcssh.tar.gz
tar zxvf ofcssh.tar.gz
cd brl-obfuscated-openssh-ca93a2c
./configure
make
make install
mv /usr/local/sbin/sshd /usr/sbin/sshd_ofc
cp /etc/ssh/sshd_config /etc/ssh/sshd_ofc_config
sed -i "s/Port /#Port /g" /etc/ssh/sshd_ofc_config
sed -i "s/UsePAM /#UsePAM /g" /etc/ssh/sshd_ofc_config
echo "ObfuscatedPort 1234" > > /etc/ssh/sshd_ofc_config
echo "ObfuscateKeyword yourkeyword" > > /etc/ssh/sshd_ofc_config
/usr/sbin/sshd_ofc -f /etc/ssh/sshd_ofc_config
echo "/usr/sbin/sshd_ofc -f /etc/ssh/sshd_ofc_config" > /etc/init.d/ssh_ofc
chmod +x /etc/init.d/ssh_ofc
ln -s /etc/init.d/ssh_ofc /etc/rcS.d/S42ssh_ofc

修改端口1234和密码yourkeyword
Here is obfuscated ssh deploy instructions for centos:

yum update
yum -y install gcc
yum -y install make
yum -y install zlib-devel #CentOS x86
yum -y install zlib-devel.x86_64 #CentOS x64
yum -y install openssl-devel #CentOS x86
yum -y install openssl-devel.x86_64 #CentOS x64
wget https://wget.5752.me/Computer/code/ofcssh.tar.gz
tar zxvf ofcssh.tar.gz
cd brl-obfuscated-openssh-ca93a2c
./configure
make
make install
mv /usr/local/sbin/sshd /usr/sbin/sshd_ofc
cp /etc/ssh/sshd_config /etc/ssh/sshd_ofc_config
sed -i "s/Port /#Port /g" /etc/ssh/sshd_ofc_config
sed -i "s/UsePAM /#UsePAM /g" /etc/ssh/sshd_ofc_config
echo "ObfuscatedPort 1234" > > /etc/ssh/sshd_ofc_config
echo "ObfuscateKeyword yourkeyword" > > /etc/ssh/sshd_ofc_config
/usr/sbin/sshd_ofc -f /etc/ssh/sshd_ofc_config
echo "/usr/sbin/sshd_ofc -f /etc/ssh/sshd_ofc_config" > /etc/init.d/ssh_ofc
chmod +x /etc/init.d/ssh_ofc
ln -s /etc/init.d/ssh_ofc /etc/rcS.d/S42ssh_ofc

修改端口1234和密码yourkeyword,注意32位与64位选择



【上一篇】 【下一篇】

Posted in 教程 ,软件 | Tags: , ,

0 条评论

添加评论

[ Ctrl + Enter ]