Redhat Linux升級SSH

升級OpenSSL
CODE:[Copy to clipboard]
cd /usr/local/src
wget http://www.openssl.org/source/openssl-0.9.7e.tar.gz
tar xzvf openssl-0.9.7e.tar.gz
cd openssl-0.9.7e
./config --prefix=/usr/local/openssl-0.9.7e
make
make test
make install
升級OpenSSH(依照最新的OpenSSL)
CODE:[Copy to clipboard]
cd /usr/local/src
wget http://gulus.usherbrooke.ca/pub/appl/ssh/OpenSSH/portable/openssh-3.9p1.tar.gz
tar xzvf openssh-3.9p1.tar.gz
cd openssh-3.9p1
./configure --prefix=/usr --with-pam --with-zlib=/usr/local/zlib --with-ssl-dir=/usr/local/openssl-0.9.7e --with-md5-passwords --mandir=/usr/share/man
(如果你自己編譯安裝了zlib,就加--with-zlib=DIR這個參數,如果默認安裝,就換成--with-zlib)
./configure --prefix=/usr --with-pam --with-zlib=/usr/local/zlib --with-ssl-dir=/usr/local/openssl-0.9.7e --with-md5-passwords --mandir=/usr/share/man
make
make install
OK,現在ssh -V看一下版本吧
QUOTE:[root@server1 openssh-3.9p1]# ssh -V
OpenSSH_3.9p1, OpenSSL 0.9.7e 25 Oct 2004
[root@server1 openssh-3.9p1]#


打開http://www.openssh.org/zh-cn/index.html
找到下載頁面 http://www.openssh.org/portable.html#http
例如 http://gulus.usherbrooke.ca/pub/appl/ssh/OpenSSH/portable/

cd /usr/local/src
wget http://gulus.usherbrooke.ca/pub/ ... penssh-3.9p1.tar.gz
tar xvzf openssh-3.9p1.tar.gz
cd openssh-3.9p1
./configure --prefix=/usr --with-pam --with-md5-passwords --sysconfdir=/etc/ssh
make
make install

正常情況已經升級完了,service sshd restart正常
ssh -V 已經顯示新的版本
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章