Enable SSH(Secure Shell) in ubuntu
jay@jay-vm:~$ sudo apt-get install openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssh-server is already the newest version.
(I already done it, your output may different from this)
After installing ssh, you can login with default port 22. If you don't like default port, you can edit following file to change it.
jay@jay-vm:~$ sudo vi /etc/ssh/sshd_config
[sudo] password for jay:
jay@jay-vm:~$ sudo service ssh restart
From now you can login with new port.