2 FreeBSD maintainer's guide to OpenSSH-portable
3 ==============================================
5 00) Make sure your mail spool has plenty of free space. It'll fill up
6 pretty fast once you're done with this checklist.
8 01) Download the latest OpenSSH-portable tarball and signature from
9 OpenBSD (ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/).
11 02) Verify the signature:
13 $ gpg --verify openssh-X.YpZ.tar.gz.asc
15 03) Unpack the tarball in a suitable directory:
17 $ tar xf openssh-X.YpZ.tar.gz
19 04) Copy to the vendor directory:
21 $ svn co svn+ssh://svn.freebsd.org/base/vendor-crypto/openssh/dist
22 $ rsync --archive --delete openssh-X.YpZ/ dist/
24 05) Take care of added / deleted files:
26 $ svn rm $(svn stat dist | awk '$1 == "!" { print $2 }')
27 $ svn add --no-auto-props $(svn stat dist | awk '$1 == "?" { print $2 }')
31 $ svn commit -m "Vendor import of OpenSSH X.YpZ." dist
35 $ svn copy -m "Tag OpenSSH X.YpZ." \
36 svn+ssh://svn.freebsd.org/base/vendor-crypto/openssh/dist \
37 svn+ssh://svn.freebsd.org/base/vendor-crypto/openssh/X.YpZ
39 08) Check out head and run the pre-merge script, which strips our RCS
40 tags from files that have them:
42 $ svn co svn+ssh://svn.freebsd.org/base/head
43 $ cd head/crypto/openssh
44 $ sh freebsd-pre-merge.sh
46 09) Merge from the vendor branch:
48 $ svn merge -cNNNNNN \^/vendor-crypto/openssh/dist .
50 0A) Resolve conflicts. Remember to bump the version addendum in
51 version.h, and update the default value in ssh{,d}_config and
54 0B) Diff against the vendor branch:
56 $ svn diff --no-diff-deleted --no-diff-added \
57 --ignore-properties \^/vendor-crypto/openssh/X.YpZ .
59 Files that have modifications relative to the vendor code, and
60 only those files, must have the svn:keywords property set to
61 FreeBSD=%H and be listed in the 'keywords' file created by the
64 0C) Run the post-merge script, which re-adds RCS tags to files that
67 $ sh freebsd-post-merge.sh
69 0D) Run the configure script:
71 $ sh freebsd-configure.sh
73 0E) Review changes to config.h very carefully.
75 0F) If source files have been added or removed, update the appropriate
76 makefiles to reflect changes in the vendor's Makefile.in.
80 $ cd ../../secure/lib/libssh && make obj && make depend && make
82 11) Follow the instructions in ssh_namespace.h to get a list of new
83 symbols, and them to ssh_namespace.h. Keep it sorted!
85 12) Build and install world, reboot, test. Pay particular attention
86 to pam_ssh(8), which gropes inside libssh and will break if
87 something significant changes or if ssh_namespace.h is out of
90 13) Commit, and hunker down for the inevitable storm of complaints.
94 An overview of FreeBSD changes to OpenSSH-portable
95 ==================================================
99 The SSH protocol allows for a human-readable version string of up
100 to 40 characters to be appended to the protocol version string.
101 FreeBSD takes advantage of this to include a date indicating the
102 "patch level", so people can easily determine whether their system
103 is vulnerable when an OpenSSH advisory goes out. Some people,
104 however, dislike advertising their patch level in the protocol
105 handshake, so we've added a VersionAddendum configuration variable
106 to allow them to change or disable it. Upstream added support for
107 VersionAddendum on the server side, but we also support it on the
110 1) Modified server-side defaults
112 We've modified some configuration defaults in sshd:
114 - UsePAM defaults to "yes".
115 - PermitRootLogin defaults to "no".
116 - X11Forwarding defaults to "yes".
117 - PasswordAuthentication defaults to "no".
118 - VersionAddendum defaults to "FreeBSD-YYYYMMDD".
119 - PrivilegeSeparation defaults to "sandbox".
120 - UseDNS defaults to "yes".
122 2) Modified client-side defaults
124 We've modified some configuration defaults in ssh:
126 - CheckHostIP defaults to "no".
127 - VerifyHostKeyDNS defaults to "yes" if built with LDNS.
128 - VersionAddendum defaults to "FreeBSD-YYYYMMDD".
130 3) Canonic host names
132 We've added code to ssh.c to canonicize the target host name after
133 reading options but before trying to connect. This eliminates the
134 usual problem with duplicate known_hosts entries.
136 4) setusercontext() environment
138 Our setusercontext(3) can set environment variables, which we must
139 take care to transfer to the child's environment.
143 Support for TCP wrappers was removed in upstream 6.7p1. We've
144 added it back by porting the 6.6p1 code forward.
148 DSA keys were disabled by default in upstream 6.9p1. We've added
151 7) Agent client reference counting
153 We've added code to ssh-agent.c to implement client reference
154 counting; the agent will automatically exit when the last client
157 8) Class-based login restrictions
159 We've added code to auth2.c to enforce the host.allow, host.deny,
160 times.allow and times.deny login class capabilities.
164 We no longer have the HPN patches (adaptive buffer size for
165 increased throughput on high-BxD links), but we recognize and
166 ignore HPN-related configuration options to avoid breaking existing
171 This port was brought to you by (in no particular order) DARPA, NAI
172 Labs, ThinkSec, Nescafé, the Aberlour Glenlivet Distillery Co.,
173 Suzanne Vega, and a Sanford's #69 Deluxe Marker.