FREE THOUGHT · FREE SOFTWARE · FREE WORLD

Home » Hosting » Failover SSH for Linux Web Hostmasters

by comment

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'

Tags

Comments Welcome

Information is freedom. Freedom is non-negotiable. So please feel free to modify, copy, republish, sell, or use anything on this site in any way at any time ;)

My Online Tools

Popular Articles
Hacking and Hackers

The use of "hacker" to mean "security breaker" is a confusion on the part of the mass media. We hackers refuse to recognize that meaning, and continue using the word to mean someone who loves to program, someone who enjoys playful cleverness, or the combination of the two.
-- Richard M. Stallman


It's very simple - you read the protocol and write the code. -Bill Joy

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 License, just credit with a link.
This site is not supported or endorsed by The Apache Software Foundation (ASF). All software and documentation produced by The ASF is licensed. "Apache" is a trademark of The ASF. NCSA HTTPd.
UNIX ® is a registered Trademark of The Open Group. POSIX ® is a registered Trademark of The IEEE.

+Askapache | htaccess.io | htaccess.guru

Site Map | Contact Webmaster | License and Disclaimer | Terms of Service | @Htaccess

↑ TOPMain