This document describes how to add a Secure SHell (SSH) service to an Elemental Linux Server (ELS) host by compiling and installing Dropbear.
These instructions assume you have networking configured for the ELS host and can connect to the internet to download files. For instructions on how to set up networking, see the Installation Instructions for ELS.
You will also need to complete the steps in the ELS Howto: Build From Source.
Dropbear needs to be configured and installed from source code. The steps below will guide you through the process.
The following steps show how to install Dropbear SSH on a typical ELS server using a symlink pointing to /opt for /usr/local instead of creating a new partition.
mount -o remount,rw /usr ln -s /opt /usr/local mount -o remount,ro /usr mkdir /usr/local/src cd /usr/local/src wget http://matt.ucc.asn.au/dropbear/dropbear-2012.55.tar.gz tar -zxf dropbear-2012.55.tar.gz cd dropbear-2012.55 ./configure make make install
Once the binaries are installed, you will need to set up server keys and configure inetd to start dropbear.
The example below shows the configuration of dropbear on an ELS server.
mkdir /etc/dropbear cd /etc/dropbear dropbearkey -t rsa -f dropbear_rsa_host_key dropbearkey -t dss -f dropbear_dss_host_key vi /etc/inetd.conf ssh stream tcp nowait root /usr/local/sbin/dropbear dropbear -i killall -HUP inetd
To test the Dropbear SSH service, try to connect to your ELS host using either ssh (on a Linux client) or PuTTY (on a Windows client).
If the connection is not successful, here are some things to check.
There is also a README file that comes in the Dropbear source code that can be helpful for getting things set up.