With Homebrew installed, installing
libssh is also very easy.
Open a new Terminal window and use the following command to install the OpenSSL library:
brew install libssh
This is shown in the following screenshot:
This time, we don't need to mess with any other options. You can start using
libssh right away.
You can try building
ssh_version.c from Chapter 11, Establishing SSH Connections with libssh, to test that everything is installed correctly. It should look like the following:
That concludes the setup for macOS.