Question: how to connect two laptops using ssh?
Answer: Generate the keys. On the machine from which you will be connecting, type: $ ssh-keygen -t dsa -f {to_machine} ... 
Move the public key to the receiving machine. ... 
Authorize the public key. ... 
Move your identity to a safe place. ... 
Test the keys.