Skip to content

Instantly share code, notes, and snippets.

@cute
Forked from surjikal/macos-openssh-portable.sh
Created September 27, 2019 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cute/5d75b32cad14359d0826789d586dd015 to your computer and use it in GitHub Desktop.
Save cute/5d75b32cad14359d0826789d586dd015 to your computer and use it in GitHub Desktop.
Compile OpenSSH Portable on OSX
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