# from
ssh localhost
ssh-keygen -t rsa
scp ~/.ssh/id_rsa.pub user@toHost:~
# to
mkdir ~/.ssh # if not exist
cat ~/id_rsa.pub >> ~/.ssh/authorized_keys
ssh-keygen -t rsa
scp ~/.ssh/id_rsa.pub bernard@auqa:~ # Linux
# to
mkdir ~/.ssh # if not exist
cp ~/id_rsa.pub ~/.ssh/authorized_keys