标签:openssh升级
Openssh升级
操作系统:预装Red Hat EL6.4 64位桌面
服务器IP:192.168.0.104
主要是利用dropbear进行ssh远程,因升级openssh过程中原ssh将无法使用
yum install –y gcc;
cd /tmp; tar -zxvf openssl-1.0.1j.tar.gz;
rpm -e `rpm -qa | grep openssl` --allmatches --nodeps;
cd openssl-1.0.1j;
./config --prefix=/usr –shared;
make;
make test;
make install;
--shared选项, 否则openssh编译的时候会找不到新安装的openssl的library, 会报错: openssl的 header和library版本不匹配
yum -y install gcc* make perl pam pam-devel;
cd /tmp;tar –zxvf openssh-6.7p1.tar.gz;
rpm -e `rpm -qa | grep openssh` --allmatches--nodeps;
cd openssh-6.7p1; ./configure --prefix=/usr --sysconfdir=/etc/ssh--with-pam --with-zlib --with-md5-passwords;
make;make install
拷贝启动脚本
cp /tmp/openssh-6.7p1/contrib/redhat/sshd.init /etc/init.d/sshd;
设置开机启动
chkconfig –add sshd;
rpm –e dropbear –allmatches
libssl.so.10:cannot open sharedobjectfile:NO such file or directory
libcrypto.so.10: cannot open sharedobjectfile:NO such file or directory
解决办法:
#cd /usr/lib64
#ln –s libssl.so.1.0.0 libssl.so.10
#ln –s libcrypto.so.1.0.0 libcrypto.so.10
本文出自 “Linux菜鸟” 博客,请务必保留此出处http://lythjq.blog.51cto.com/8902270/1602660
标签:openssh升级
原文地址:http://lythjq.blog.51cto.com/8902270/1602660