The "write failed, broken pipe" message usually indicates a
disconnection after ssh has successfully logged in.
From what you're saying though it sounds to me as if there is some
problem with clashing IP addresses.
Are both the laptops on the same LAN? More specifically are they on
the same subnet? If you are connecting the BBBs to the laptops using
the ethernet over USB then confusing things might happen.
Tell us more about how you're connecting the BBBs and also try with no
other (ethernet/LAN) connections to the Laptops. If all is OK with no
other network connections then add things back until it goes wrong.
Remember also that ethernet/LAN connections can be WiFi, maybe both
Laptops are connecting by WiFi to the local LAN without you even
knowing (try turning WiFi off).