ssh-keygen
Kali> cat ~/.ssh/id-rsa.pub Target> echo "ssh-rsa <id-rsa.pub>" >> ~/.ssh/authorized_keys
or
ssh-copy-id user@host
Key must have chmod 600
ssh -i <key> user@host
TODO