系统自带的openssh遭到破坏,源码编译openssh
cp /etc/init.d/sshd /home/sshold
wget
tar -zxvf openssh-6.1p1.tar.gz
cd openssh-6.1p1
./configure --prefix=/usr/ --sysconfdir=/etc/ssh/ --with-zlib
make
make install
/usr/sbin/sshd
netstat -tunlp |grep :22
cp /home/sshold /etc/init.d/sshd #被破坏掉的openssh启动脚本,废物利用了
service sshd restart
阅读(2535) | 评论(0) | 转发(0) |