To access remote machine using SSH
> ssh user@remote-host
> enter password when prompted
To get rid of entering password everytime you try to access, SSH keys has to be exchanged between local machine and remote server.
> ssh-keygen [Enter] [Enter] [Enter]
# to generate ssh key if you don't have one already in ~/.ssh
> ssh-copy-id -i ~/.ssh/id_rsa.pub user@remote-host
# copy the generated ssh public key to the remote host
> ssh user@remote-host
# next time you can access the remote box using SSH you will not be prompted with password