Adding SSH server to Linux ( Ubuntu 12.04 LTS ) openssh-server

SSH 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.

1. Open Terminal (CTRL + ALT + T)

2. Install openssh-server.

$sudo apt-get install openssh-server

3. Once installed, it is possible to change which port to connect on by editing the following file:

/etc/ssh/sshd_config

#Package generated configuration file

# See the sshd_config(5) manpage for details

#What ports, IPs, and porotocols we listen for:

Port 22

4. Save the file.

You can now connect to the machine using SSH (Putty, WinSCP, etc) on port 22, or whatever port you wish to use.