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 for the first computer and for the second computer

Both netmasks should be

Press save


Now you should be able to SSH directly between machines