Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Numberedheadings

System Preparation

Add the Moonshot libraries.

If you have not already done so, you first need to follow the instructions on how to .

Install prerequisites

  1. You will need various packages installed in order to build OpenSSH from scratch. Install them via yum:

    bash

Ensure that your hostname is correct

The channel bindings check requires that the hostname of your SSH server match the hostname people are SSHing to. That is, the output of the "hostname" command should match the FQDN of the server. If it doesn't, change the relevant line in /etc/sysconfig/network to make it so.

Installation Instructions

Get the sources and patches

  1. If you do not have any rpmbuild directories already, create them now.

    bash
  2. Download the OpenSSH sources for your particular minor version of RHEL/CentOS/SL into the SOURCES directory. The sources are available at the following locations:

  3. Navigate to the SOURCES directory and extract the source from the RPM.

    bash
  4. Download the Moonshot patches into the SOURCES directory.

    bash
  5. Navigate to the SPECS directory and download the Moonshot-enabled OpenSSH spec file for your particular version of RHEL/CentOS/SL. The sources are available at the following locations:
    1. CentOS 6.5: http://iam.cf.ac.uk/moonshot/patches/openssh/openssh-6.5-94.spec
    2. CentOS 6.4: http://iam.cf.ac.uk/moonshot/patches/openssh/openssh-6.4-84.spec
  6. Rename the file you downloaded to "openssh.spec", overwriting the existing copy:

    (For CentOS 6.5)

Build OpenSSH

Now we're ready to build the Moonshot-enabled version of OpenSSH.

  1. Make sure you're in the SPECS directory and execute an RPM build.

    If the build was successful, in your /rpmbuild/RPMS/x86_64 directory you should find RPMs for the following:

      • openssh
      • openssh-askpass
      • openssh-clients
      • openssh-ldap
      • openssh-server
      • pam_ssh_agent_auth

Installing your new RPMs

Now we're ready to install the new Moonshot-enabled OpenSSH packages.

Remove the existing OpenSSH packages

If you've already customised your OpenSSH server configuration, you may wish to back up that configuration now.

 

  1. Remove the existing OpenSSH packages using yum.

    bash

Install the new OpenSSH packages

  1. Install the new OpenSSH packages using rpm.

  2. If you backed up your existing configuration, restore it now.

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:

    true
  2. Configure the OpenSSH client to use Moonshot by editing /etc/ssh/ssh_config. Check the following lines are present and uncommented:

    true