How to setup an OpenSSH Server on Ubuntu 9.04 Jaunty Jackalope

Here’s a simple walkthrough to setup an OpenSSH server on Jaunty together with 2 basic hardening options you should apply.

1. Install the OpenSSH server.

Fire up a console and run the command below. This will install the required binaries and packages for the OpenSSH server.

apt-get install openssh-server

2. Get some basic hardening in by disabling “root” login and restricting access to specific accounts. All changes are to the “/etc/ssh/sshd_config” configuration file.

vi the “/etc/ssh/sshd_config” file and apply the changes below.

Look for "PermitRootLogin yes"
and change it to
"PermitRootLogin no"

Start a new line and add the line below. “danesh” is my user name, you should replace it with your own user name. You can add multiple user names by seperating each user name with a space.

AllowUsers danesh user1 user2

3. Restart your shiny new OpenSSH server and you are good to go.

Run the command below to restart the OpenSSH server.

sudo /etc/init.d/ssh restart

2 Responses to “How to setup an OpenSSH Server on Ubuntu 9.04 Jaunty Jackalope”

Author comments are in a darker gray color for you to easily identify the posts author in the comments

  1. rod says:

    how do i set the port for my ssh? can change it?? pls help

  2. okh says:

    change (or add) line
    Port 22 to Port 2222

    # Port 22

Leave a Reply

© 2008-2009 The Danesh Project
Powered by Wordpress and made by Guerrilla. Best viewed in Mozilla Firefox