This question already has an answer here:
I have used ssh before to login to a remote server connected via LAN.
I have two personal computers running on Ubuntu. Is it possible to connect the two using ssh so that I can login from one system to another and vice-versa? If so, how?