| Port details on branch 2026Q2 |
- libssh Library implementing the SSH2 protocol
- 0.12.0_1 security
=0 0.12.0_1Version of this port present on the latest quarterly branch. - Maintainer: sunpoet@FreeBSD.org
 - Port Added: 2026-04-21 13:33:06
- Last Update: 2026-04-21 12:51:53
- Commit Hash: 4ffcaac
- Also Listed In: devel
- License: LGPL21
- WWW:
- https://www.libssh.org/
- https://gitlab.com/libssh/libssh-mirror
- Description:
- The ssh library was designed to be used by programmers needing a working SSH
implementation by the mean of a library. The complete control of the client is
made by the programmer. With libssh, you can remotely execute programs, transfer
files, use a secure and transparent tunnel for your remote programs.
With its Secure FTP implementation, you can play with remote files easily,
without third-party programs others than libcrypto (from OpenSSL).
libssh features:
- Full C library functions for manipulating a client-side SSH connection
- SSH2 protocol compliant
- Fully configurable sessions
- Server support, SSH agent authentication support
- Support for AES-128, AES-192, AES-256, Blowfish, 3DES in CBC mode
- Use multiple SSH connections in a same process, at same time
- Use multiple channels in the same connection
- Thread safety when using different sessions at same time
- POSIX-like SFTP implementation with openssh extension support
- SCP implementation
- RSA and DSS server public key supported
- Compression support (with zlib)
- Public key (RSA and DSS), password and keyboard-interactive authentication
 ¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - USE_RC_SUBR (Service Scripts)
- no SUBR information found for this port
- Dependency lines:
-
- To install the port:
- cd /usr/ports/security/libssh/ && make install clean
- To add the package, run one of these commands:
- pkg install security/libssh
- pkg install libssh
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: libssh
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1773966766
SHA256 (libssh-0.12.0.tar.xz) = 1a6af424d8327e5eedef4e5fe7f5b924226dd617ac9f3de80f217d82a36a7121
SIZE (libssh-0.12.0.tar.xz) = 751928
No package information for this port in our database- Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link:

- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- cmake : devel/cmake-core
- ninja : devel/ninja
- Test dependencies:
-
- cmocka>=0 : sysutils/cmocka
- This port is required by:
- for Libraries
-
- devel/kio-extras
- net/krdc
Configuration Options:
- ===> The following configuration options are available for libssh-0.12.0_1:
OPENSSL=on: SSL/TLS support via OpenSSL
STATIC=on: Build static executables and/or libraries
====> GSSAPI Security API support: you have to select exactly one of them
GSSAPI_BASE=on: GSSAPI support via base system (needs Kerberos)
GSSAPI_HEIMDAL=off: GSSAPI support via security/heimdal
GSSAPI_MIT=off: GSSAPI support via security/krb5
GSSAPI_NONE=off: Disable GSSAPI support
===> Use 'make config' to modify these settings
- Options name:
- security_libssh
- USES:
- cmake:testing cpe tar:xz gssapi:base,flags ssl
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
| Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
| Commit | Credits | Log message |
0.12.0_1 21 Apr 2026 12:51:53
    |
Po-Chuan Hsieh (sunpoet)  |
security/libssh: Add my LOCAL to MASTER_SITES
(cherry picked from commit aca35ce76e937bea24cf6bde1738d7d575816deb) |
0.12.0_1 21 Apr 2026 12:51:52
    |
Po-Chuan Hsieh (sunpoet)  |
security/libssh: Fix build on FreeBSD 15+ with OpenSSL from base system
openssl/ml_kem.h is missing from the OpenSSL 3.5 in the base system.
Add a workaround to disable MLKEM support on such systems temporarily.
(cherry picked from commit 08397e80c8929b63765d853dfc0286327ac8276d) |
0.12.0_1 21 Apr 2026 12:51:52
    |
Po-Chuan Hsieh (sunpoet)  Author: Daniel Engberg |
security/libssh: Mark BROKEN on 15+ and add backup for MASTER_SITES
Fails to build on 15+,
src/mlkem_crypto.c:31:10: fatal error: 'openssl/ml_kem.h' file not found
Add temporary backup for MASTER_SITES to avoid build failures on other
versions and of consumers as main upstream site current truncates
downloads
Thanks to eduardo@ for verifying build issues on -CURRENT
PR: 294268
Approved by: blanket, just fix it
(cherry picked from commit 4211f99a216d4f440b3b804a1e6db475087e3ed2) |
0.12.0 21 Apr 2026 12:51:51
    |
Po-Chuan Hsieh (sunpoet)  |
security/libssh: Update to 0.12.0
Changes: https://git.libssh.org/projects/libssh.git/tree/CHANGELOG
Security: CVE-2026-0964, CVE-2026-0965, CVE-2026-0966, CVE-2026-0967,
CVE-2026-0968, CVE-2025-14821
(cherry picked from commit c05ae97377204ae6dcf1a2ee00cf647804342bed) |