curl -O ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-5.4p1.tar.gz
tar -xvzf openssh-5.4p1.tar.gz
cd openssh-5.4p1.tar.gz

Installing OpenSSH from source

Note: to build static OpenSSH binaries, run ./configure --with-ldflags=-static

./configure --prefix=/usr --includedir=/usr/include --mandir=/usr/share/man --infodir=/usr/share/info 
--sysconfdir=/etc --with-tcp-wrappers --with-pam --with-md5-passwords --without-skey --disable-strip 
--without-xauth --with-zlib --without-bsd-auth --disable-utmpx --disable-wtmpx --without-osfsia 
--without-solaris-contracts --with-ssl-engine --with-mantype=man --with-4in6

Useful Links / Information

Autostarting Servers and Process.. with inittab

So everyone seems to have forgotten that /etc/inittab is a great place to keep your daemons running. Not me. Here is how to keep sshd (s-s), named, mysql, and apache always on using /etc/inittab. The difference is awesome when you do a ps Aux or a pstree.

Check it out! This lets me run named with only 3 child processes, lets me run mysql with it's mysqld_safe wrapper, and even lets me run apache with some custom ulimit settings. Goodbye chkconfig, ntsysv, all that junk. This is the down and dirty.

zh:2345:respawn:/opt/static/s-s -D -q -u0 -f /opt/os/etc/s-s
zn:2345:respawn:/bin/sh -c 'exec /usr/static/sbin/named -n1 -d3 -4 -u named -f -t /monkey/chroot'
zm:2345:respawn:/bin/sh -c '/usr/static/mysqld_safe --datadir=/monkey/mysql --pid-file=/monkey/mysql/askapache.com.pid; sleep 60'
zp:2345:respawn:/bin/sh -c 'ulimit -n 8192; /opt/static/2216/bin/apachectl start; sleep 60'

Hosting compile inittab ssh

Comments