Introduction

Do you feel that someone is attempting to access you server? To find out, you can deploy a honeypot within your system to help you ease your paranoia by either confirming or dismissing your initial believe. As an example you can start the Kippo SSH honeypot, which allows you to monitor brute-force attempts, collect up today exploits and malware. Kippo also automatically records hacker's shell session, which you can replay to explore various hacking techniques and later use this gathered knowledge to harden your production server. Another reason why to install a honeypot is to take away an attention from your production server. In this tutorial we will show how to deploy a Kippo SSH honeypot on the Ubuntu server.

Prerequisites

Kippo SSH honeypot is a python based application. Therefore, we need to first install python libraries:

$ sudo apt-get install python-twisted

Normally you would run you sshd service listening on default port 22. It makes sense to use this port for your SSH honeypot and thus if you already run the SSH service we need to change the default port to some other number. I would suggest not to use alternative port 2222 as its use is already generally known and it could sabotage your disguise. Let's pick some random 4-digit number like 4632. Open your SSH /etc/ssh/sshd_config configuration file and change the Port directive from:

Below you can find some tips on how to check Ubuntu version you are currently running.

The first place to look for Ubuntu version is to look inside /etc/issue file. From terminal run command:

$ cat /etc/issue
Ubuntu Xenial Xerus \n \l

To obtain a Ubuntu release number check content of /etc/lsb-release file:

$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu Xenial Xerus

As you may have already notice Ubuntu Xenial Xerus 16.04 Linux Desktop does not come with the ability to login as a root administrator user by default. Every attempt to login as root on a terminal will result in Login incorrect error message:
Ubuntu Xenial Xerus 16.04 root login incorrect.
The reason behind this default Ubuntu Linux desktop behavior is that you rarely need to login as a root user to your GUI desktop. Furthermore, login as root to GUI is highly dangerous and discouraged. The following lines will show you how to gain a root terminal access and how to reset a root password in order to login as root directly.

Using sudo

The recommended way to execute commands as a root user is by using a sudo command. Every time you prefix your command with sudo it will be executed with root privileges. For example the following fdisk -l command with be executed as root. When asked for a password enter your user password:
$ sudo fdisk -l
[sudo] password for linuxconfig: 

The following guide will provide you with some hints and shortcuts on how to open a terminal on Ubuntu Xenial Xerus 16.04 Linux Unity desktop.

Terminal Shortcut

Probably one of the easiest and fastest ways on how to open a terminal on Ubuntu Xenial Xerus 16.04 Linux is by using a keyboard shortcut:
CTRL+ALT+T

Desktop Right-Click Shortcut

The second easiest way is to open your command line terminal by right clicking the desktop screen and selecting "Open Terminal" from the presented drop down menu:
 Ubuntu Xenial Xerus 16.04 open terminal right-click desktop click

zsync is a very handy download tool if you would like to keep your Ubuntu Xenial Xerus ISO image up to date without the need to re-download and entire ISO image every time there was an update. This is especially true with a daily build Ubuntu Xenial Xerus ISO images or if you have a limited download speed or bandwidth. In this case thezsync will allow you to download only that part of the ISO image which has been changed since your last download.

Prerequisites

To get begin let's start by installation of zsync package:
# apt-get install zsync

ARE YOU LOOKING FOR A LINUX JOB?
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed on LinuxCareers.com.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.