-
-
Save NanXiao/04fe8857f3781a5d3be9cea898081c18 to your computer and use it in GitHub Desktop.
Compile OpenSSH Portable on OSX / MacOS
This file contains hidden or 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 | |
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/usr/local/opt/openssl/lib" \ | |
CPPFLAGS="-I/usr/local/opt/openssl/include" | |
make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment