SSH is not enabled by default in Ubuntu, but you can easily enable this service viaOpenSSH, a free version of the SSH connectivity tools developed by the OpenBSD Project.
To do so, run the command below in terminal:sudo apt-get install openssh-server
Or install the openssh-server package via Ubuntu Software Center if you’re on Desktop edition:
Once installed, you can change the port, disable root login and do other changes by editing the config file:sudo gedit /etc/ssh/sshd_config
Finally restart the ssh server to take place:sudo /etc/init.d/ssh restart
That’s it. Enjoy!