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

Table of Contents

  1. Introduction
    1. Installing OpenSSH from source
    2. Useful Links / Information
    3. Autostarting Servers and Process.. with inittab

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

  • SSH with Keys HOWTO
  • HOWTO: set up ssh keys
  • OpenSSH key management, Part 1
  • OpenSSH key management, Part 2
  • OpenSSH key management, Part 3
  • Getting started with SSH
  • Manual Pages: ssh-keygen(1)
  • Sharing SSH keys on 2 linux servers
  • How to set up SSH keys: Frustration with "Server refused our key" [PuTTY]
  • Securing your secure shell (SSH) service

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'

Failover SSH for Linux Web Hostmasters - AskApache

Charles Torvalds
24 Apr 2010

compile, inittab, ssh

  • Site Map WireShark GNU Non-GNU Tor Project cURL TLDP - Documentation
  • Htaccess Files Hacking Htaccess Javascript Linux Optimization PHP Security Shell Scripting WordPress
  • Base64 Image Converter Raw HTTP Header Debugger Graphical ASCII Text Generator Mac Address Vendor Lookup Who Am I – Your IP Information Request Method Security Scanner .htpasswd file Generator Compress CSS DNS Tracer
Copyright © 2025 AskApache
  • Site Map
  • Htaccess Files
  • Hacking
  • Htaccess
  • Javascript
  • Linux
  • Optimization
  • PHP
  • Security
  • Shell Scripting
  • WordPress
  • Base64 Image Converter
  • Raw HTTP Header Debugger
  • Graphical ASCII Text Generator
  • Mac Address Vendor Lookup
  • Who Am I – Your IP Information
  • Request Method Security Scanner
  • .htpasswd file Generator
  • Compress CSS
  • DNS Tracer
Exit mobile version