There are a few different ways, though one of the most common ways to connect two cages is just cutting a small hole in both and using a tunnel between the two to connect them. That way you can make sure there are no gaps.
However, if you are removing the whole wall on one side of each and than pushing them together something such as metal clamp could secure them.