Add the Moonshot libraries.
If you have not already done so, you first need to follow the instructions on OpenSSH Client how to install the Moonshot libraries on Ubuntu 14.04 LTS.
Prepare the building environment
Install the required packages.
apt-get install build-essential dpkg-dev fakeroot gnupg lintian patch patchutils strace unzip pbuilder debian-builder quilt \
automake autoconf debhelper dh-make devscripts
apt-get source openssh
apt-get build-dep openssh
Download the gssapi-generic.patch, then build the packages.
$ cd openssh-6.6p1
$ cp /tmp/gssapi-generic.patch debian/patches
$ echo "gssapi-generic.patch" >> debian/patches/series
$ debuild -us -uc
The new packages can be installed with dpkg.
$ dpkg -i ../openssh-server_6.6p1-X_<arch>.deb
Once installed, the Moonshot-enabled OpenSSH server will still need a few quick tweaks in order to turn on the Moonshot support.
Configure the OpenSSH server to use Moonshot by editing
/etc/ssh/sshd_config. Check the following lines are present and uncommented:
Now restart the OpenSSH server
$ service ssh restart
Configure the OpenSSH Client.