-
-
Save SteveClement/50cae9aaadd6e38dd7b2a790e6aa27bb to your computer and use it in GitHub Desktop.
Compile OpenSSH Portable on OSX / MacOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
brew install openssl automake | |
git clone git://anongit.mindrot.org/openssh.git | |
cd openssh | |
# ./configure script does not exist, so we have to build it | |
autoreconf | |
mkdir dist | |
./configure \ | |
--prefix="$(pwd)/dist" \ | |
LDFLAGS="-L$(brew --prefix openssl)/lib" \ | |
CPPFLAGS="-I$(brew --prefix openssl)/include" | |
make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment