Skip to content

Instantly share code, notes, and snippets.

@SteveClement
Forked from surjikal/macos-openssh-portable.sh
Last active October 4, 2023 09:59
Show Gist options
  • Save SteveClement/50cae9aaadd6e38dd7b2a790e6aa27bb to your computer and use it in GitHub Desktop.
Save SteveClement/50cae9aaadd6e38dd7b2a790e6aa27bb to your computer and use it in GitHub Desktop.
Compile OpenSSH Portable on OSX / MacOS
#!/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