Upgrading OpenSSH to Version 7.4 or Above
Background
Currently, OpenSSH versions below 7.4 on Linux have some critical vulnerabilities, and OpenSSH needs to be upgraded to version 7.4 or above. On a machine without external network access (no yum), this is quite troublesome. Online resources generally recommend backing up SSH and installing Telnet first, so you can still access the machine via Telnet if the upgrade fails.
Common Issues and Solutions
1. Cannot find zlib.h
Reference: http://www.linuxidc.com/Linux/2012-10/72036.htm
2. zlib download link
3. Installing zlib
Reference: http://www.360doc.com/content/13/0124/17/1200324_262179628.shtml
4. Dependencies required for manually compiling OpenSSH
zlibpampam-devel
If you get the error configure: error: PAM headers not found, you can download pam-devel:
5. OpenSSL download
6. Installing OpenSSL
References:
- http://blog.csdn.net/ikownyou/article/details/53021686
- http://www.linuxidc.com/Linux/2011-10/45738.htm
Notes
If SecureCRT cannot log in after upgrading OpenSSH, it may be because the SecureCRT version is too old to support certain encryption protocols:
Reference: http://blog.csdn.net/yangg1991/article/details/51755562
Steps to Upgrade OpenSSH
Reference: http://blog.csdn.net/u011080082/article/details/64503534
Upgrading vsftpd from 2.2.2 to 2.3.4
Download the vsftpd-2.3.4.tar.gz package. For 64-bit systems, note:
| |
Configuring vsftpd
Using active mode:
| |
When starting in standard_alone mode, you need to add the following two lines to the top of the configuration file:
Reference: http://wingjang.blog.163.com/blog/static/47913442200811113104509/
| |
After installation, only anonymous users are allowed to log in by default, so you need to modify the configuration:
Reference: http://blog.sina.com.cn/s/blog_7e16680c01018ox1.html
Handling TCP_Wrapper Issues
If there are issues, pay attention to removing spaces, or you can remove it entirely:
References:
- http://blog.csdn.net/u010098331/article/details/50699914
- http://blog.csdn.net/yylklshmyt20090217/article/details/8500608