static link openssh:
http://stackoverflow.com/questions/25464755/compiling-openssl-what-does-rodata-and-fpic-mean
download openssl and compile:
make clean && make dclean export CFLAGS="-fPIC" #necessary ./config shared no-ssl2 --prefix=/usr/local/openssl ... #shard option will also generate so make depend make
install openssh:
./configure --with-md5-passwords --prefix=/usr/ --sysconfdir=/etc/ssh --with-pam #necessary, or xcrypt.c cannot reference crypt() modify Makefile, add -I/usr/local/openssl/include to CPPFLAGS, modify -lcrypto of LIBS to /usr/local/openssl/lib/libcrypto.a make && make install