blob: 1521dc6e39f1e95febe121a56bf57dac96ae8de4 [file] [log] [blame]
Damien Millerb5f89271999-11-12 14:35:58 +110011. Prerequisites
2----------------
3
4You will need working installations of Zlib and OpenSSL.
5
6Zlib:
7http://www.cdrom.com/pub/infozip/zlib/
8
9OpenSSL:
10http://www.openssl.org/
11
12OpenSSH can utilise Pluggable Authentication Modules (PAM) if your system
13supports it. PAM is standard on Redhat and Debian Linux and on Solaris.
14
15PAM:
16http://www.kernel.org/pub/linux/libs/pam/
17
Damien Miller780b3761999-12-26 13:36:11 +110018If you wish to build the GNOME passphrase requester, you will need the GNOME
Damien Millerb5f89271999-11-12 14:35:58 +110019libraries and headers.
20
21GNOME:
22http://www.gnome.org/
23
Damien Miller780b3761999-12-26 13:36:11 +110024Alternatly Jim Knoble <jmknoble@pobox.com> has written an excellent X11
25passphrase requester. This is maintained seperatly at:
26
27http://www.pobox.com/~jmknoble/jmk/
28
29
Damien Millerb5f89271999-11-12 14:35:58 +110030If you are planning to use OpenSSH on a Unix which lacks a Kernel random
31number generator (/dev/urandom), you will need to install the Entropy
32Gathering Daemon (or similar). You will also need to specify the
33--with-egd-pool option to ./configure.
34
35EGD:
36http://www.lothar.com/tech/crypto/
37
Damien Miller4d2f15f1999-11-23 12:36:29 +110038GNU Make:
39ftp://ftp.gnu.org/gnu/make/
40
41OpenSSH has only been tested with GNU make. It may work with other
42'make' programs, but you are on your own.
Damien Millerb5f89271999-11-12 14:35:58 +110043
442. Building / Installation
45--------------------------
46
47To install OpenSSH with default options:
48
49./configure
50make
51make install
52
53This will install the OpenSSH binaries in /usr/local/bin, configuration files
54in /usr/local/etc, the server in /usr/local/sbin, etc. To specify a different
55installation prefix, use the --prefix option to configure:
56
57./configure --prefix=/opt
58make
59make install
60
61Will install OpenSSH in /opt/{bin,etc,lib,sbin}. You can also override
62specific paths, for example:
63
64./configure --prefix=/opt --sysconfdir=/etc/ssh
65make
66make install
67
68This will install the binaries in /opt/{bin,lib,sbin}, but will place the
69configuration files in /etc/ssh.
70
Damien Miller294df781999-11-23 10:11:29 +110071If you are using PAM, you will need to manually install a PAM control
72file as "/etc/pam.d/sshd" (or wherever your system prefers to keep
73them). A generic PAM configuration is included as "sshd.pam.generic",
74you may need to edit it before using it on your system.
Damien Miller755c90c1999-11-22 16:12:31 +110075
Damien Millerb5f89271999-11-12 14:35:58 +110076There are a few other options to the configure script:
77
Damien Millerc0967271999-11-19 15:53:50 +110078--enable-gnome-askpass will build the GNOME passphrase dialog. You
79need a working installation of GNOME, including the development
80headers, for this to work.
Damien Millerb5f89271999-11-12 14:35:58 +110081
Damien Millerc0967271999-11-19 15:53:50 +110082--with-random=/some/file allows you to specify an alternate source of
83random numbers (the default is /dev/urandom). Unless you are absolutly
Damien Millerb5f89271999-11-12 14:35:58 +110084sure of what you are doing, it is best to leave this alone.
85
Damien Millerc0967271999-11-19 15:53:50 +110086--with-egd-pool=/some/file allows you to enable Entropy Gathering
87Daemon support and to specify a EGD pool socket. You will need to
88use this if your Unix does not support the /dev/urandom device (or
Damien Millerab8a4da1999-12-16 13:05:30 +110089similar). The file argument refers to the EGD pool file, not the
90EGD program itself. Please refer to the EGD documentation.
Damien Millerb5f89271999-11-12 14:35:58 +110091
Damien Millerc0967271999-11-19 15:53:50 +110092--with-kerberos4 will enable Kerberos IV support. You will need to
93have the Kerberos libraries and header files installed for this to
94work.
95
96--with-afs will enable AFS support. You will need to have the Kerberos
97IV 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
100the S/Key libraries and header files installed for this to work.
101
102--with-tcp-wrappers will enable TCP Wrappers (/etc/hosts.allow|deny)
103support. You will need libwrap.a and tcpd.h installed.
104
105--with-md5-passwords will enable the use of MD5 passwords. Enable this
106if your operating system uses MD5 passwords without using PAM.
Damien Miller3d1b22c1999-11-12 15:46:08 +1100107
Damien Millerb5f89271999-11-12 14:35:58 +1100108
1093. Configuration
110----------------
111
112The runtime configuration files are installed by in ${prefix}/etc or
113whatever you specified as your --sysconfdir (/usr/local/etc by default).
114
115The default configuration should be instantly usable, though you should
116review it to ensure that it matches your security requirements.
117
Damien Miller2a9d9f61999-11-15 23:34:11 +1100118To generate a host key, issue the following command: (replacing
119/etc/ssh/ssh_host_key with an appropriate path)
120
121/usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N ''
122
Damien Miller6ae00d61999-12-14 15:43:03 +1100123Replacing /etc/ssh with the correct path to the configuration directory.
124(${prefix}/etc or whatever you specified with --sysconfdir during
125configuration)
126
Damien Millerab8a4da1999-12-16 13:05:30 +1100127If you have configured OpenSSH with EGD support, ensure that EGD is
128running and has collected some Entropy.
129
Damien Millerb5f89271999-11-12 14:35:58 +1100130For more information on configuration, please refer to the manual pages
131for sshd, ssh and ssh-agent.
132
Damien Miller6ae00d61999-12-14 15:43:03 +11001334. Problems?
134------------
135
136If you experience problems compiling, installing or running OpenSSH.
137Please refer to the "reporting bugs" section of the webpage at
138http://violet.ibs.com.au/openssh/
139