Skip to content
Tags

,

Configuring SSH

August 3, 2012

Purpose:

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

Steps:

  • 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
    

Source

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

http://briglamoreaux.wordpress.com

Here’s the original steps:

http://briglamoreaux.wordpress.com/2011/09/30/configure-ssh/

Advertisements

From → Guide

4 Comments
  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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: