Install OpenSSH (secure shell)
From WickyWiki
Note: SSH uses TCP port 22, so configure your router with TCP port 22 forwarding if you want access from outside your LAN.
sudo apt-get install openssh-server:
Login with ssh from other machine (give password at the prompt):
ssh -l login_name ip_address