I would like to use ssh to access the shell of another Ubuntu computer and issue a few commands. I'm interested in how to form the shh command in the following scenarios. To keep it simple, I will not be using password protected accounts. I would like to focus primarily on command formations that establish the connection.
Two local Ubuntu computers directly connected with an Ethernet cable:
Two remote Ubuntu computers where each is connected via cable modem (each has it's own ip):
Same as previous, but one is using NAT:
Two remote Ubuntu computers, where one is connected via a cable modem and the other is connected via a wireless router:
Two local boxes connected to the same wireless router: