centos7.4升级openssh到8.1p1

    1 cd /ssh

    2  cd openssh-8.1p1/

    3  ls

    4  mv /usr/bin/openssl /usr/bin/openssl_bak

    5  mv /usr/include/openssl /usr/include/openssl_bak

    6  openssl

    7  openssl version

    8  cd ../openssl-1.1.1g/

    9  ls

  10  ./config shared && make && make install

  11  mkdir /tmp/backup

  12  mv /etc/ssh/* /tmp/backup

  13  ssh -V

  14  openssl version

  15  make && make install

  16  cd ..

  17  ls

  18  openssl version

  19  cd openssl-1.1.1g/

  20  cd ..

  21  cd openssh-8.1p1/

  22  lls

  23  ls

  24  ./configure --prefix=/usr/ --with-md5-passwords --with-pam --with-zlib --sysconfdir=/etc/ssh

  25  yum install openssl-devel -y

  26  yum update openssl-devel -y

  27  /usr/local/bin/openssl version

  28  /usr/local/openssl version

  29  bin/openssl version

  30  cd /ssh/openssl-1.1.1g/

  31  ls

  32  ./config  --prefix=/usr/local --openssldir=/usr/local/ssl

  33  make && make install

  34  ./config shared --prefix=/usr/local --openssldir=/usr/local/ssl

  35  make clean

  36  make && make install

  37  openssl

  38  openssl version

  39  echo $?

  40  ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl

  41  ln -s /usr/local/ssl/include/openssl /usr/include/openssl

  42  echo "/usr/local/ssl/bin" >> /etc/ld.so.conf

  43  /sbin/ldconfig

  44  openssl version

  45  ln -s /usr/local/lib64/libssl.so.1.1 /usr/lib64/libssl.so.1.1

  46  ln -s /usr/local/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1

  47  openssl version

  48  cd ..

  49  ls

  50  ll

  51  rpm -qa | grep openssh

  52*

  53  yum -y install openssh-7.4p1-11.el7.x86_64

  54  yum -y remove openssh-server-7.4p1-11.el7.x86_64

  55  rpm -qa | grep openssh

  56  yum -y remove openssh-clients-7.4p1-11.el7.x86_64

  57  rpm -qa | grep openssh

  58  yum -y remove openssh-7.4*

  59  cd openssh

  60  cd openssh-8.1p1/

  61  ./configure --prefix=/usr/ --sysconfdir=/etc/ssh  --with-ssl-dir=/usr/local/ssl --with-zlib --with-md5-passwords  --with-pam  && make

  62  openssl version

  63  find / -name openssl

  64*

  65  /usr/local/bin/openssl version

  66  /usr/local/include/openssl version

  67  /usr/local/include/openssl/ version

  68  ll /usr/local/include/openssl/

  69  yum -y remove openssl-devel

  70  ./configure --prefix=/usr/ --sysconfdir=/etc/ssh  --with-ssl-dir=/usr/local/ssl --with-zlib --with-md5-passwords  --with-pam  && make

  71  yum -y install pam*

  72  ./configure --prefix=/usr/ --sysconfdir=/etc/ssh  --with-ssl-dir=/usr/local/ssl --with-zlib --with-md5-passwords  --with-pam  && make

  73  make istall

  74  make install

  75  vi /etc/ssh/sshd_config

  76  ls

  77  find / -name sshd.init

  78  cp -a contrib/redhat/sshd.init /etc/init.d/sshd

  79  chmod +x /etc/init.d/sshd

  80  chkconfig --add sshd

  81  systemctl enable sshd

  82  cd /usr/lib/systemd/

  83  ls

  84  chkconfig sshd on

  85  systemctl restart sshd

  86  systemctl status sshd

  87  ssh -V

你可能感兴趣的:(centos7.4升级openssh到8.1p1)