1. 程式人生 > >suse openssh7.8直接升級到7.9過程

suse openssh7.8直接升級到7.9過程

先升級openssl到最新,(不是最新版會報錯) 上傳壓縮包到伺服器 cd /home/gmcc/telnet-server tar openssl-1.1.1.tar.gz cd /home/gmcc/telnet-server/openssl-1.1.1 ./config --prefix=/usr/local/openssl --openssldir=/etc/ssl shared zlib make make install rm /usr/bin/openssl ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl ln -s /usr/local/openssl/include/openssl /usr/include/openssl echo “/usr/local/openssl/lib” >> /etc/ld.so.conf ldconfig openssl version -a

cd /home/gmcc/telnet-server tar -xvf openssh-7.9p1.tar.gz cd /home/gmcc/telnet-server/openssh-7.9p1 ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam --with-openssl --with-md5-passwords --mandir=/usr/share/man --with-zlib --with-ssl-engine --with-ssl-dir=/usr/local/openssl make make install cd /home/gmcc/telnet-server/openssh-7.9p1/contrib cp suse/rc.sshd /etc/init.d/sshd chmod 755 /etc/init.d/sshd chkconfig --add sshd chkconfig sshd on service sshd start ssh -V