Login/Register

How to: Install OpenSSH Server on Ubuntu

created by BasicSysAdmin

Tags: Linux, Ubuntu, Ubuntu 12.04, Ubuntu 14.04, Ubuntu 15.04, Debian

Jun 22, 2016

Introduction

This tutorial will show you the steps needed to setup your Ubuntu machine with an SSH Server so that you can receive incoming ssh connections.
https://www.youtube.com/watch?v=QY14UMlu1hk
Prerequisites

In order to follow this tutorial, you will need the following

  • Ubuntu/Debian Machine

  • Sudo privileges (or root access)



  • Update Package list

    Before installing any new packages, it is always good idea to update your package list. You can do this by typing:
    sudo apt-get update

    Installing the OpenSSH Server

    sudo apt-get install openssh-server


    After you have done this, OpenSSH Server should be installed. Should you wish to make any changes to the config, you may do so by typing
    sudo nano /etc/ssh/sshd_config

    If you do, the file should look a little something like this:

    A Word of Warning

    If you plan to make this machine publically accessible, please make sure to secure your installation. You may find these guides helpful
    Connecting to the Server with the SSH Keys

    Depending on the system you are using, the method you can use to connect changes. Please follow the appropriate guides below.
  • Setup Public Key Authentication on Ubuntu