On local computer (your laptop) works on Mac and Linux: $ cd # go into home directory $ mkdir .ssh $ cd .ssh $ ssh-keygen -t rsa -f rpi_rsa $ cat > config Host 192.168.2.2 IdentityFile ~/.ssh/rpi_rsa User pi ^D $ chmod 600 * $ chmod 700 ../.ssh $ cat rpi_rsa.pub Copy contents of rpi_rsa.pub and put on RPi: On RPi $ cd $ mkdir .ssh $ cd .ssh $ cat > rpi_rsa.pub <PASTE contents of rpi_rsa.pub> ^D $ cp rpi_rsa.pub authorized_keys $ chmod 600 * $ chmod 700 ../.ssh Now on your localhost/laptop type: $ ssh 192.168.2.2 |