当前位置:   article > 正文

Ubuntu-openssh 升级_ubuntu22.04升级ssh

ubuntu22.04升级ssh
  1. lsb_release -a
  2. No LSB modules are available.
  3. Distributor ID: Ubuntu
  4. Description: Ubuntu 22.04.3 LTS
  5. Release: 22.04
  6. Codename: jammy
  7. ssh -V
  8. OpenSSH_8.9p1 Ubuntu-3ubuntu0.5, OpenSSL 3.0.2 15 Mar 2022
  9. sudo apt update
  10. sudo apt install build-essential zlib1g-dev libssl-dev -y
  11. sudo apt install autoconf -y
  12. sudo mkdir /var/lib/sshd
  13. sudo chmod -R 700 /var/lib/sshd/
  14. sudo chown -R root:sys /var/lib/sshd/
  15. sudo tar -zxf openssh-portable-V_9_3_P2.tar.gz
  16. ## 下载地址:https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/
  17. cd openssh-portable-V_9_3_P2/
  18. sudo autoreconf
  19. sudo apt install libpam0g-dev libselinux1-dev libkrb5-dev -y
  20. sudo ./configure --with-kerberos5 --with-md5-passwords --with-pam --with-selinux --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh
  21. sudo make
  22. sudo make install
  23. sudo systemctl restart ssh
  24. sudo systemctl status ssh
  25. ssh -V
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/853591
推荐阅读
相关标签
  

闽ICP备14008679号