Enable SSH in Ubuntu

SSH (Secure Shell) is a secure communication protocol that lets you remotely access networked computers. It is known as a replacement for Telnet which is very unsecure. While Telnet sends traffic in plain text, SSH on the other hand uses a secure protocol to communicate.

Ubuntu 13.10 & 14.04

Step 1: Install OpenSSH Server

sudo apt-get install openssh-server

Step 2: Edit SSHD Config File

sudo gedit /etc/ssh/sshd_config

You can modify the following lines if desired else leave all as default:

– Set your OpenSSH to listen on TCP port 2222 instead of the default TCP port 22, change the Port directive
– To have sshd allow public key-based login credentials, simply add or modify the line:

PubkeyAuthentication yes

– To make your OpenSSH server display the contents of the /etc/issue.net file as a pre-login banner, simply add or modify the line:

Banner /etc/issue.net

Step 3: Restart SSH Service

sudo /etc/init.d/ssh restart
 
comments powered by Disqus