OpenSSH is the leading connectivity tool for remote login using the SSH protocol
After six months of development , the release of the new version of OpenSSH 9.1 was announced , a version that is characterized by mainly containing bug fixes, including fixes for several potential vulnerabilities caused by memory problems.
For those unfamiliar with OpenSSH, it's a suite of applications that enables encrypted communication over a network using the SSH protocol. It was created as a free and open-source alternative to the proprietary Secure Shell program.
Main new features of OpenSSH 9.1
In this new version of OpenSSH 9.1, as mentioned at the beginning, the version is corrective and among the problems that were addressed in this release is, for example, the solution to the single byte overflow in the SSH banner processing code in the ssh-keyscan utility.
Another problem addressed in this new version of OpenSSH 9.1 was the double call to the free() function in case of error when calculating hashes for files in the code to create and verify digital signatures in the ssh-keygen utility.
In addition to that, it is also mentioned that the portable project OpenSSH now signs commits and release tags using recent git SSH signing support. The developer list signing keys are included in the repository as .git_allowed_signers and it is signed with the PGP key which is still used for signing
release artifacts, so there may be an incompatibility issue.
Regarding the changes that occur, it is mentioned that the SetEnv directives in the ssh_config and sshd_config configuration files now apply the value of the first occurrence of an environment variable if it is defined multiple times in the configuration (previously, the last occurrence was used).
By calling the ssh-keygen utility with the "-A" flag (which generates all supported host key types by default), the generation of DSA keys, which have not been used by default for several years, is disabled.
sftp-server and sftp implement the " [email protected] " extension to allow the client to request usernames and group names corresponding to a given set of numeric identifiers (uid and gid). In sftp, this extension is used to display names when listing the contents of a directory.
sftp-server implements the "home-directory" extension to expand the ~/ and ~user/ paths, an alternative to the " [email protected] " extension previously proposed for the same purposes (the "home-directory" extension was proposed for standardization and has already been endorsed by some customers).
In sftp, additional arguments are allowed in the "-D" option (e.g., "/usr/libexec/sftp-server -el debug3"), while ssh-keygen allows the use of "-U" (using ssh-agent) along with the "-Y sign" operations to determine that private keys are placed in ssh-agent.
Other changes made in this new version include:
- Added the ability for ssh-keygen and sshd to specify UTC time when determining certificate and key validity intervals, in addition to system time.
- Double call to free() when handling errors in the ssh-keysign utility.
- The RequiredRSAsize directive has been added to ssh and sshd, allowing you to define the minimum allowed size of RSA keys. In sshd, keys smaller than this will be ignored, while in ssh, they will terminate the connection.
- The OpenSSH portable edition has been converted to use SSH keys to digitally sign commits and tags in Git.
Finally, if you are interested in learning more, you can find the details at the following link.
How to install OpenSSH 9.1 on Linux?
For those interested in installing this new version of OpenSSH on their systems, for now they can do so by downloading the source code and compiling it on their computers.
This is because the new version has not yet been included in the repositories of major Linux distributions. To obtain the source code, you can use the following link.
Once the download is complete, we will now decompress the package with the following command:
tar -xvf openssh-9.1.tar.gz
We enter the created directory:
cd openssh-9.1
And we can perform the compilation with the following commands:
./configure --prefix = / opt --sysconfdir = / etc / ssh make make install