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 | |
Damien Miller | 780b376 | 1999-12-26 13:36:11 +1100 | [diff] [blame] | 18 | If you wish to build the GNOME passphrase requester, you will need the GNOME |
Damien Miller | b5f8927 | 1999-11-12 14:35:58 +1100 | [diff] [blame] | 19 | libraries and headers. |
| 20 | |
| 21 | GNOME: |
| 22 | http://www.gnome.org/ |
| 23 | |
Damien Miller | 780b376 | 1999-12-26 13:36:11 +1100 | [diff] [blame] | 24 | Alternatly Jim Knoble <jmknoble@pobox.com> has written an excellent X11 |
| 25 | passphrase requester. This is maintained seperatly at: |
| 26 | |
| 27 | http://www.pobox.com/~jmknoble/jmk/ |
| 28 | |
| 29 | |
Damien Miller | b5f8927 | 1999-11-12 14:35:58 +1100 | [diff] [blame] | 30 | If you are planning to use OpenSSH on a Unix which lacks a Kernel random |
| 31 | number generator (/dev/urandom), you will need to install the Entropy |
| 32 | Gathering Daemon (or similar). You will also need to specify the |
| 33 | --with-egd-pool option to ./configure. |
| 34 | |
| 35 | EGD: |
| 36 | http://www.lothar.com/tech/crypto/ |
| 37 | |
Damien Miller | 4d2f15f | 1999-11-23 12:36:29 +1100 | [diff] [blame] | 38 | GNU Make: |
| 39 | ftp://ftp.gnu.org/gnu/make/ |
| 40 | |
| 41 | OpenSSH has only been tested with GNU make. It may work with other |
| 42 | 'make' programs, but you are on your own. |
Damien Miller | b5f8927 | 1999-11-12 14:35:58 +1100 | [diff] [blame] | 43 | |
| 44 | 2. Building / Installation |
| 45 | -------------------------- |
| 46 | |
| 47 | To install OpenSSH with default options: |
| 48 | |
| 49 | ./configure |
| 50 | make |
| 51 | make install |
| 52 | |
| 53 | This will install the OpenSSH binaries in /usr/local/bin, configuration files |
| 54 | in /usr/local/etc, the server in /usr/local/sbin, etc. To specify a different |
| 55 | installation prefix, use the --prefix option to configure: |
| 56 | |
| 57 | ./configure --prefix=/opt |
| 58 | make |
| 59 | make install |
| 60 | |
| 61 | Will install OpenSSH in /opt/{bin,etc,lib,sbin}. You can also override |
| 62 | specific paths, for example: |
| 63 | |
| 64 | ./configure --prefix=/opt --sysconfdir=/etc/ssh |
| 65 | make |
| 66 | make install |
| 67 | |
| 68 | This will install the binaries in /opt/{bin,lib,sbin}, but will place the |
| 69 | configuration files in /etc/ssh. |
| 70 | |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 71 | If you are using PAM, you will need to manually install a PAM control |
| 72 | file as "/etc/pam.d/sshd" (or wherever your system prefers to keep |
| 73 | them). A generic PAM configuration is included as "sshd.pam.generic", |
| 74 | you may need to edit it before using it on your system. |
Damien Miller | 755c90c | 1999-11-22 16:12:31 +1100 | [diff] [blame] | 75 | |
Damien Miller | b5f8927 | 1999-11-12 14:35:58 +1100 | [diff] [blame] | 76 | There are a few other options to the configure script: |
| 77 | |
Damien Miller | c096727 | 1999-11-19 15:53:50 +1100 | [diff] [blame] | 78 | --enable-gnome-askpass will build the GNOME passphrase dialog. You |
| 79 | need a working installation of GNOME, including the development |
| 80 | headers, for this to work. |
Damien Miller | b5f8927 | 1999-11-12 14:35:58 +1100 | [diff] [blame] | 81 | |
Damien Miller | c096727 | 1999-11-19 15:53:50 +1100 | [diff] [blame] | 82 | --with-random=/some/file allows you to specify an alternate source of |
| 83 | random numbers (the default is /dev/urandom). Unless you are absolutly |
Damien Miller | b5f8927 | 1999-11-12 14:35:58 +1100 | [diff] [blame] | 84 | sure of what you are doing, it is best to leave this alone. |
| 85 | |
Damien Miller | c096727 | 1999-11-19 15:53:50 +1100 | [diff] [blame] | 86 | --with-egd-pool=/some/file allows you to enable Entropy Gathering |
| 87 | Daemon support and to specify a EGD pool socket. You will need to |
| 88 | use this if your Unix does not support the /dev/urandom device (or |
Damien Miller | ab8a4da | 1999-12-16 13:05:30 +1100 | [diff] [blame] | 89 | similar). The file argument refers to the EGD pool file, not the |
| 90 | EGD program itself. Please refer to the EGD documentation. |
Damien Miller | b5f8927 | 1999-11-12 14:35:58 +1100 | [diff] [blame] | 91 | |
Damien Miller | c096727 | 1999-11-19 15:53:50 +1100 | [diff] [blame] | 92 | --with-kerberos4 will enable Kerberos IV support. You will need to |
| 93 | have the Kerberos libraries and header files installed for this to |
| 94 | work. |
| 95 | |
| 96 | --with-afs will enable AFS support. You will need to have the Kerberos |
| 97 | IV and the AFS libraries and header files installed for this to work. |
| 98 | |
| 99 | --with-skey will enable S/Key one time password support. You will need |
| 100 | the S/Key libraries and header files installed for this to work. |
| 101 | |
| 102 | --with-tcp-wrappers will enable TCP Wrappers (/etc/hosts.allow|deny) |
| 103 | support. You will need libwrap.a and tcpd.h installed. |
| 104 | |
| 105 | --with-md5-passwords will enable the use of MD5 passwords. Enable this |
| 106 | if your operating system uses MD5 passwords without using PAM. |
Damien Miller | 3d1b22c | 1999-11-12 15:46:08 +1100 | [diff] [blame] | 107 | |
Damien Miller | beb4ba5 | 1999-12-28 15:09:35 +1100 | [diff] [blame^] | 108 | If you need to pass special options to the compiler or linker, you |
| 109 | can specify these as enviornment variables before running ./configure. |
| 110 | For example: |
| 111 | |
| 112 | CFLAGS="-O -m486" LFLAGS="-s" ./configure |
Damien Miller | b5f8927 | 1999-11-12 14:35:58 +1100 | [diff] [blame] | 113 | |
| 114 | 3. Configuration |
| 115 | ---------------- |
| 116 | |
| 117 | The runtime configuration files are installed by in ${prefix}/etc or |
| 118 | whatever you specified as your --sysconfdir (/usr/local/etc by default). |
| 119 | |
| 120 | The default configuration should be instantly usable, though you should |
| 121 | review it to ensure that it matches your security requirements. |
| 122 | |
Damien Miller | 2a9d9f6 | 1999-11-15 23:34:11 +1100 | [diff] [blame] | 123 | To generate a host key, issue the following command: (replacing |
| 124 | /etc/ssh/ssh_host_key with an appropriate path) |
| 125 | |
| 126 | /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' |
| 127 | |
Damien Miller | 6ae00d6 | 1999-12-14 15:43:03 +1100 | [diff] [blame] | 128 | Replacing /etc/ssh with the correct path to the configuration directory. |
| 129 | (${prefix}/etc or whatever you specified with --sysconfdir during |
| 130 | configuration) |
| 131 | |
Damien Miller | ab8a4da | 1999-12-16 13:05:30 +1100 | [diff] [blame] | 132 | If you have configured OpenSSH with EGD support, ensure that EGD is |
| 133 | running and has collected some Entropy. |
| 134 | |
Damien Miller | b5f8927 | 1999-11-12 14:35:58 +1100 | [diff] [blame] | 135 | For more information on configuration, please refer to the manual pages |
| 136 | for sshd, ssh and ssh-agent. |
| 137 | |
Damien Miller | 6ae00d6 | 1999-12-14 15:43:03 +1100 | [diff] [blame] | 138 | 4. Problems? |
| 139 | ------------ |
| 140 | |
| 141 | If you experience problems compiling, installing or running OpenSSH. |
| 142 | Please refer to the "reporting bugs" section of the webpage at |
| 143 | http://violet.ibs.com.au/openssh/ |
| 144 | |