Damien Miller | b5f8927 | 1999-11-12 14:35:58 +1100 | [diff] [blame] | 1 | 1. Prerequisites |
| 2 | ---------------- |
| 3 | |
| 4 | You will need working installations of Zlib and OpenSSL. |
| 5 | |
| 6 | Zlib: |
| 7 | http://www.cdrom.com/pub/infozip/zlib/ |
| 8 | |
| 9 | OpenSSL: |
| 10 | http://www.openssl.org/ |
| 11 | |
| 12 | OpenSSH can utilise Pluggable Authentication Modules (PAM) if your system |
| 13 | supports it. PAM is standard on Redhat and Debian Linux and on Solaris. |
| 14 | |
| 15 | PAM: |
| 16 | http://www.kernel.org/pub/linux/libs/pam/ |
| 17 | |
| 18 | If you wish to build the GNOME passphrase requestor, you will need the GNOME |
| 19 | libraries and headers. |
| 20 | |
| 21 | GNOME: |
| 22 | http://www.gnome.org/ |
| 23 | |
| 24 | If you are planning to use OpenSSH on a Unix which lacks a Kernel random |
| 25 | number generator (/dev/urandom), you will need to install the Entropy |
| 26 | Gathering Daemon (or similar). You will also need to specify the |
| 27 | --with-egd-pool option to ./configure. |
| 28 | |
| 29 | EGD: |
| 30 | http://www.lothar.com/tech/crypto/ |
| 31 | |
Damien Miller | 4d2f15f | 1999-11-23 12:36:29 +1100 | [diff] [blame^] | 32 | GNU Make: |
| 33 | ftp://ftp.gnu.org/gnu/make/ |
| 34 | |
| 35 | OpenSSH has only been tested with GNU make. It may work with other |
| 36 | 'make' programs, but you are on your own. |
Damien Miller | b5f8927 | 1999-11-12 14:35:58 +1100 | [diff] [blame] | 37 | |
| 38 | 2. Building / Installation |
| 39 | -------------------------- |
| 40 | |
| 41 | To install OpenSSH with default options: |
| 42 | |
| 43 | ./configure |
| 44 | make |
| 45 | make install |
| 46 | |
| 47 | This will install the OpenSSH binaries in /usr/local/bin, configuration files |
| 48 | in /usr/local/etc, the server in /usr/local/sbin, etc. To specify a different |
| 49 | installation prefix, use the --prefix option to configure: |
| 50 | |
| 51 | ./configure --prefix=/opt |
| 52 | make |
| 53 | make install |
| 54 | |
| 55 | Will install OpenSSH in /opt/{bin,etc,lib,sbin}. You can also override |
| 56 | specific paths, for example: |
| 57 | |
| 58 | ./configure --prefix=/opt --sysconfdir=/etc/ssh |
| 59 | make |
| 60 | make install |
| 61 | |
| 62 | This will install the binaries in /opt/{bin,lib,sbin}, but will place the |
| 63 | configuration files in /etc/ssh. |
| 64 | |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 65 | If you are using PAM, you will need to manually install a PAM control |
| 66 | file as "/etc/pam.d/sshd" (or wherever your system prefers to keep |
| 67 | them). A generic PAM configuration is included as "sshd.pam.generic", |
| 68 | you may need to edit it before using it on your system. |
Damien Miller | 755c90c | 1999-11-22 16:12:31 +1100 | [diff] [blame] | 69 | |
Damien Miller | b5f8927 | 1999-11-12 14:35:58 +1100 | [diff] [blame] | 70 | There are a few other options to the configure script: |
| 71 | |
Damien Miller | c096727 | 1999-11-19 15:53:50 +1100 | [diff] [blame] | 72 | --enable-gnome-askpass will build the GNOME passphrase dialog. You |
| 73 | need a working installation of GNOME, including the development |
| 74 | headers, for this to work. |
Damien Miller | b5f8927 | 1999-11-12 14:35:58 +1100 | [diff] [blame] | 75 | |
Damien Miller | c096727 | 1999-11-19 15:53:50 +1100 | [diff] [blame] | 76 | --with-random=/some/file allows you to specify an alternate source of |
| 77 | random numbers (the default is /dev/urandom). Unless you are absolutly |
Damien Miller | b5f8927 | 1999-11-12 14:35:58 +1100 | [diff] [blame] | 78 | sure of what you are doing, it is best to leave this alone. |
| 79 | |
Damien Miller | c096727 | 1999-11-19 15:53:50 +1100 | [diff] [blame] | 80 | --with-egd-pool=/some/file allows you to enable Entropy Gathering |
| 81 | Daemon support and to specify a EGD pool socket. You will need to |
| 82 | use this if your Unix does not support the /dev/urandom device (or |
| 83 | similar). |
Damien Miller | b5f8927 | 1999-11-12 14:35:58 +1100 | [diff] [blame] | 84 | |
Damien Miller | c096727 | 1999-11-19 15:53:50 +1100 | [diff] [blame] | 85 | --without-askpass will disable X11 password requestor support in |
| 86 | ssh-add |
| 87 | |
| 88 | --with-kerberos4 will enable Kerberos IV support. You will need to |
| 89 | have the Kerberos libraries and header files installed for this to |
| 90 | work. |
| 91 | |
| 92 | --with-afs will enable AFS support. You will need to have the Kerberos |
| 93 | IV and the AFS libraries and header files installed for this to work. |
| 94 | |
| 95 | --with-skey will enable S/Key one time password support. You will need |
| 96 | the S/Key libraries and header files installed for this to work. |
| 97 | |
| 98 | --with-tcp-wrappers will enable TCP Wrappers (/etc/hosts.allow|deny) |
| 99 | support. You will need libwrap.a and tcpd.h installed. |
| 100 | |
| 101 | --with-md5-passwords will enable the use of MD5 passwords. Enable this |
| 102 | if your operating system uses MD5 passwords without using PAM. |
Damien Miller | 3d1b22c | 1999-11-12 15:46:08 +1100 | [diff] [blame] | 103 | |
Damien Miller | b5f8927 | 1999-11-12 14:35:58 +1100 | [diff] [blame] | 104 | |
| 105 | 3. Configuration |
| 106 | ---------------- |
| 107 | |
| 108 | The runtime configuration files are installed by in ${prefix}/etc or |
| 109 | whatever you specified as your --sysconfdir (/usr/local/etc by default). |
| 110 | |
| 111 | The default configuration should be instantly usable, though you should |
| 112 | review it to ensure that it matches your security requirements. |
| 113 | |
Damien Miller | 2a9d9f6 | 1999-11-15 23:34:11 +1100 | [diff] [blame] | 114 | To generate a host key, issue the following command: (replacing |
| 115 | /etc/ssh/ssh_host_key with an appropriate path) |
| 116 | |
| 117 | /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' |
| 118 | |
Damien Miller | b5f8927 | 1999-11-12 14:35:58 +1100 | [diff] [blame] | 119 | For more information on configuration, please refer to the manual pages |
| 120 | for sshd, ssh and ssh-agent. |
| 121 | |