OpenSSH Server on Ubuntu 14.04 LTS

Ubuntu 14.04 LTS (Trusty Tahr) does not ship with a version of OpenSSH that is compatible with Moonshot. To get Moonshot support for it, you must install a specific Moonshot-enabled version. The following instructions will guide you through the package building process.

Contents

All of the instructions below assume that you have root access, and will work as the root user (either directly or using sudo).

The instructions on this page will replace the system provided OpenSSH packages with the Moonshot enabled ones (don't worry, standard SSH things will still work!)

Following the instructions on this page will give you a Moonshot-enabled OpenSSH Server only.

1. System Preparation

1.1. 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.

1.2. Prepare the building environment

  1. 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
    cd openssh-6.6p1
    apt-get build-dep openssh
    

2. Building instructions

  1. 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

 

3. Installation Instructions

  1. The new packages can be installed with dpkg.

    $ dpkg -i ../openssh-server_6.6p1-X_<arch>.deb

4. Configuration Instructions

Once installed, the Moonshot-enabled OpenSSH server will still need a few quick tweaks in order to turn on the Moonshot support.

  1. Configure the OpenSSH server to use Moonshot by editing /etc/ssh/sshd_config. Check the following lines are present and uncommented:

    GSSAPIAuthentication yes
    GSSAPIKeyExchange no
    GSSAPIStrictAcceptorCheck yes
    
  2. Now restart the OpenSSH server

    $ service ssh restart
  3. Configure the OpenSSH Client.