notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Port details on branch 2026Q2
libssh Library implementing the SSH2 protocol
0.12.0_1 security on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 0.12.0_1Version of this port present on the latest quarterly branch.
Maintainer: sunpoet@FreeBSD.org search for ports maintained by this maintainer
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
HomepageHomepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (24 items)
Collapse this list.
  1. @ldconfig
  2. /usr/local/share/licenses/libssh-0.12.0_1/catalog.mk
  3. /usr/local/share/licenses/libssh-0.12.0_1/LICENSE
  4. /usr/local/share/licenses/libssh-0.12.0_1/LGPL21
  5. include/libssh/callbacks.h
  6. include/libssh/legacy.h
  7. include/libssh/libssh.h
  8. include/libssh/libssh_version.h
  9. include/libssh/libsshpp.hpp
  10. include/libssh/server.h
  11. include/libssh/sftp.h
  12. include/libssh/sftpserver.h
  13. include/libssh/ssh2.h
  14. lib/cmake/libssh/libssh-config-release.cmake
  15. lib/cmake/libssh/libssh-config-version.cmake
  16. lib/cmake/libssh/libssh-config.cmake
  17. lib/libssh.a
  18. lib/libssh.so
  19. lib/libssh.so.4
  20. lib/libssh.so.4.11.0
  21. libdata/pkgconfig/libssh.pc
  22. @owner
  23. @group
  24. @mode
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • libssh>0:security/libssh
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: pkg-fallout
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. cmake : devel/cmake-core
  2. ninja : devel/ninja
Test dependencies:
  1. cmocka>=0 : sysutils/cmocka
This port is required by:
for Libraries
  1. devel/kio-extras
  2. 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:
Expand this list (5 items)
Collapse this list.
  1. http://distcache.FreeBSD.org/local-distfiles/sunpoet/
  2. http://distcache.eu.FreeBSD.org/local-distfiles/sunpoet/
  3. http://distcache.us-east.FreeBSD.org/local-distfiles/sunpoet/
  4. http://distcache.us-west.FreeBSD.org/local-distfiles/sunpoet/
  5. https://www.libssh.org/files/0.12/
Collapse this list.

Number of commits found: 4

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.12.0_1
21 Apr 2026 12:51:53
commit hash: 4ffcaac2873f6b8b7636bfd5e769cb3b2add555ccommit hash: 4ffcaac2873f6b8b7636bfd5e769cb3b2add555ccommit hash: 4ffcaac2873f6b8b7636bfd5e769cb3b2add555ccommit hash: 4ffcaac2873f6b8b7636bfd5e769cb3b2add555c files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
security/libssh: Add my LOCAL to MASTER_SITES

(cherry picked from commit aca35ce76e937bea24cf6bde1738d7d575816deb)
0.12.0_1
21 Apr 2026 12:51:52
commit hash: 46129d7d233603e7d5ea2a000cc655e51a4cd135commit hash: 46129d7d233603e7d5ea2a000cc655e51a4cd135commit hash: 46129d7d233603e7d5ea2a000cc655e51a4cd135commit hash: 46129d7d233603e7d5ea2a000cc655e51a4cd135 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
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
commit hash: eaeaaeec54bd261d2a86e33489642a11ef3fc08ccommit hash: eaeaaeec54bd261d2a86e33489642a11ef3fc08ccommit hash: eaeaaeec54bd261d2a86e33489642a11ef3fc08ccommit hash: eaeaaeec54bd261d2a86e33489642a11ef3fc08c files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
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
commit hash: faea03d52ac6870d82600bfbb5cb7df4e34d497dcommit hash: faea03d52ac6870d82600bfbb5cb7df4e34d497dcommit hash: faea03d52ac6870d82600bfbb5cb7df4e34d497dcommit hash: faea03d52ac6870d82600bfbb5cb7df4e34d497d files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
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)

Number of commits found: 4