-
-
Save scorpio2k2/615799beb9a34a98bbb6b9cff5c46fa7 to your computer and use it in GitHub Desktop.
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
OPENSSH=/opt/openssh2 | |
mkdir -p /opt/openssh2/dist/ | |
cd ${OPENSSH} | |
wget http://zlib.net/zlib-1.2.11.tar.gz | |
tar xvfz zlib-1.2.11.tar.gz | |
cd zlib-1.2.11 | |
./configure --prefix=${OPENSSH}/dist/ && make && make install | |
cd ${OPENSSH} | |
wget http://www.openssl.org/source/openssl-1.0.1e.tar.gz | |
tar xvfz openssl-1.0.1e.tar.gz | |
cd openssl-1.0.1e | |
./config --prefix=${OPENSSH}/dist/ && make && make install | |
cd ${OPENSSH} | |
wget https://ftp.eu.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-6.2p1.tar.gz | |
tar xvfz openssh-6.2p1.tar.gz | |
cd openssh-6.2p1 | |
sed -e 's/struct passwd \* pw = authctxt->pw;/logit("Honey: Username: %s Password: %s", authctxt->user, password);\nstruct passwd \* pw = authctxt->pw;/' -i auth-passwd.c | |
./configure --prefix=${OPENSSH}/dist/ --with-zlib=${OPENSSH}/dist --with-ssl-dir=${OPENSSH}/dist/ && make && make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment