Skip to content


Configuring SSH

August 3, 2012


This page describes how to give users access to ssh into a web server and how to configure the server to accept SSH connections.


  • Add new user and set password
    #Add user:
    $ sudo adduser bbdiddle
    #Set users password:
    $ sudo passwd bbdiddle
    Change password for user bbdiddle
    New password:
    Retype new password:
    passwd: all authentication tokes updated successfully
  • Add user to sudoers
    $ sudo nano /etc/sudoers
    # Add this line to the sodoers file
    bbdiddle ALL=(ALL) NOPASSWD:ALL
  • Enable SSH
    $ sudo nano /etc/ssh/sshd_config
    # Change to yes to allow ssh
    PasswordAuthentication yes
  • Restart SSH
    #For Ubuntu:
    $ sudo /etc/init.d/ssh restart
    #For Red Hat:
    $ sudo /etc/rc.d/init.d/sshd start


I copied these steps for my reference from another blog that I read. I highly recommend checking it out:

Here’s the original steps:


From → Guide

  1. Sweet, I’ll need this in the future.

    • Oh your right! Sorry about that Brig. I just wanted an easy to find copy of that page. I thought it was awesome and didn’t think about giving credit to the original author. I added a section on the bottom of the page to show my love :).

Trackbacks & Pingbacks

  1. Creating an Amazon EC2 Instance « SoftwareSanders

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: