]>
Commit | Line | Data |
---|---|---|
8bc7973f | 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 | ||
32 | ||
33 | 2. Building / Installation | |
34 | -------------------------- | |
35 | ||
36 | To install OpenSSH with default options: | |
37 | ||
38 | ./configure | |
39 | make | |
40 | make install | |
41 | ||
42 | This will install the OpenSSH binaries in /usr/local/bin, configuration files | |
43 | in /usr/local/etc, the server in /usr/local/sbin, etc. To specify a different | |
44 | installation prefix, use the --prefix option to configure: | |
45 | ||
46 | ./configure --prefix=/opt | |
47 | make | |
48 | make install | |
49 | ||
50 | Will install OpenSSH in /opt/{bin,etc,lib,sbin}. You can also override | |
51 | specific paths, for example: | |
52 | ||
53 | ./configure --prefix=/opt --sysconfdir=/etc/ssh | |
54 | make | |
55 | make install | |
56 | ||
57 | This will install the binaries in /opt/{bin,lib,sbin}, but will place the | |
58 | configuration files in /etc/ssh. | |
59 | ||
529c5440 | 60 | If you are using PAM, you will need to manually install the sshd.pam |
61 | control file as "/etc/pam.d/sshd". This file is customised for Redhat | |
62 | Linux, you may need to edit it before using it on your system. | |
63 | ||
8bc7973f | 64 | There are a few other options to the configure script: |
65 | ||
721c55f0 | 66 | --enable-gnome-askpass will build the GNOME passphrase dialog. You |
67 | need a working installation of GNOME, including the development | |
68 | headers, for this to work. | |
8bc7973f | 69 | |
721c55f0 | 70 | --with-random=/some/file allows you to specify an alternate source of |
71 | random numbers (the default is /dev/urandom). Unless you are absolutly | |
8bc7973f | 72 | sure of what you are doing, it is best to leave this alone. |
73 | ||
721c55f0 | 74 | --with-egd-pool=/some/file allows you to enable Entropy Gathering |
75 | Daemon support and to specify a EGD pool socket. You will need to | |
76 | use this if your Unix does not support the /dev/urandom device (or | |
77 | similar). | |
8bc7973f | 78 | |
721c55f0 | 79 | --without-askpass will disable X11 password requestor support in |
80 | ssh-add | |
81 | ||
82 | --with-kerberos4 will enable Kerberos IV support. You will need to | |
83 | have the Kerberos libraries and header files installed for this to | |
84 | work. | |
85 | ||
86 | --with-afs will enable AFS support. You will need to have the Kerberos | |
87 | IV and the AFS libraries and header files installed for this to work. | |
88 | ||
89 | --with-skey will enable S/Key one time password support. You will need | |
90 | the S/Key libraries and header files installed for this to work. | |
91 | ||
92 | --with-tcp-wrappers will enable TCP Wrappers (/etc/hosts.allow|deny) | |
93 | support. You will need libwrap.a and tcpd.h installed. | |
94 | ||
95 | --with-md5-passwords will enable the use of MD5 passwords. Enable this | |
96 | if your operating system uses MD5 passwords without using PAM. | |
045672f9 | 97 | |
8bc7973f | 98 | |
99 | 3. Configuration | |
100 | ---------------- | |
101 | ||
102 | The runtime configuration files are installed by in ${prefix}/etc or | |
103 | whatever you specified as your --sysconfdir (/usr/local/etc by default). | |
104 | ||
105 | The default configuration should be instantly usable, though you should | |
106 | review it to ensure that it matches your security requirements. | |
107 | ||
3e807d1e | 108 | To generate a host key, issue the following command: (replacing |
109 | /etc/ssh/ssh_host_key with an appropriate path) | |
110 | ||
111 | /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' | |
112 | ||
8bc7973f | 113 | For more information on configuration, please refer to the manual pages |
114 | for sshd, ssh and ssh-agent. | |
115 |