How to install and configure open ssh server on Ubuntu

4
How To Install OpenSSH Server on Ubuntu Overview The purpose of this document is to install OpenSSH server in Ubuntu based operating system. Applies To Ubuntu 12.04 Query OpenSSH Package Before installation, query and list package is already installed, execute the command dpkg -l openssh

Transcript of How to install and configure open ssh server on Ubuntu

Page 1: How to install and configure open ssh server on Ubuntu

How To Install OpenSSH Server on Ubuntu

Overview

The purpose of this document is to install OpenSSH server in Ubuntu based operating system.

Applies To

Ubuntu 12.04

Query OpenSSH Package

Before installation, query and list package is already installed, execute the command

dpkg -l openssh

Page 2: How to install and configure open ssh server on Ubuntu

How To Install OpenSSH Server on Ubuntu

Install OpenSSH Server

To install execute the command

sudo apt-get install openssh-server

Verify Installation Status

dpkg -l openssh

Page 3: How to install and configure open ssh server on Ubuntu

How To Install OpenSSH Server on Ubuntu

Default Port - Openssh

sudo vi /etc/ssh/sshd_config

port 22

Check OpenSSH Service Status

sudo service openssh status

Page 4: How to install and configure open ssh server on Ubuntu

How To Install OpenSSH Server on Ubuntu

Validate Connectivity

When you telnet to hostname with port 22, the connection should be established, else the service is running.

telnet `hostname` 22

Note: to quit telnet session press keys Ctrl + ] and q