Directly networking two PCs ethernet

How to network two PCs directly with ethernet and no router  

On both machines right click the network manager icon and choose Edit Connections

Choose wired

Edit the existing connection or add a new one

Under IPv4 choose manual

Press Add

For address enter something along the lines of 192.168.2.2 for the first computer and 192.168.2.3 for the second computer

Both netmasks should be 255.255.255.0

Press save

--

Now you should be able to SSH directly between machines