Ubuntu 12.04 ships with OpenSSH-5.9p1.
We would like to have the LDAP Public Keys patch incorporated, as well as the SFTP File Control patch
To do this:
- cd /usr/src
- apt-get source openssh && cd openssh-5.9p1
- patch < ~/sftp.patch
- apt-source --commit
- patch < ~/lpk.patch
- apt-source --commit
- dpkg-buildpackage
Both had to be slightly changed so they could be applied (order: sftp,lpk).