升级Openssh

1. 升级OpenSSL

  • 下载地址:http://www.openssl.org
  • 如果使用0.9.8版本,在编译安装的时候会出错,虽然有办法可以解决…建议还是用0.9.7

# cd /usr/local/src
# tar xzvf openssl-0.9.7k.tar.gz
# cd openssl-0.9.7k
# ./config –prefix=/usr/local/openssl-0.9.7k
# make
# make test
# make install

2. 升级OpenSSH

# cd /usr/local/src
# tar xzvf openssh-4.3p2.tar.gz
# cd openssh-4.3p2
# ./configure \
        –prefix=/usr \
        –with-pam \
        –with-zlib \
        –with-ssl-dir=/usr/local/openssl-0.9.7k \
        –with-md5-passwords \
        –mandir=/usr/share/man \
        –sysconfdir=/etc/ssh
# make
# make install

完成后,检查一下ssh是否升级成功
# ssh -v
OpenSSH_4.3p2, OpenSSL 0.9.7k 05 Sep 2006

发表评论

注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>