]> andersk Git - openssh.git/blob - INSTALL
Doc and Doh! fixes
[openssh.git] / INSTALL
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 requester, you will need the GNOME
19 libraries and headers.
20
21 GNOME:
22 http://www.gnome.org/
23
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
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
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.
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
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.
75
76 There are a few other options to the configure script:
77
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.
81
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
84 sure of what you are doing, it is best to leave this alone.
85
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
89 similar). The file argument refers to the EGD pool file, not the 
90 EGD program itself. Please refer to the EGD documentation.
91
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.
107
108
109 3. Configuration
110 ----------------
111
112 The runtime configuration files are installed by in ${prefix}/etc or 
113 whatever you specified as your --sysconfdir (/usr/local/etc by default).
114
115 The default configuration should be instantly usable, though you should 
116 review it to ensure that it matches your security requirements.
117
118 To 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
123 Replacing /etc/ssh with the correct path to the configuration directory.
124 (${prefix}/etc or whatever you specified with --sysconfdir during 
125 configuration)
126
127 If you have configured OpenSSH with EGD support, ensure that EGD is
128 running and has collected some Entropy.
129
130 For more information on configuration, please refer to the manual pages 
131 for sshd, ssh and ssh-agent.
132
133 4. Problems?
134 ------------
135
136 If you experience problems compiling, installing or running OpenSSH. 
137 Please refer to the "reporting bugs" section of the webpage at
138 http://violet.ibs.com.au/openssh/
139
This page took 0.05426 seconds and 5 git commands to generate.