ssh-keygen -t rsa -b 4096
Your keys will be created at ~/.ssh/id_rsa.pub and ~/.ssh/id_rsa
ssh-copy-id user@remote_server
If ssh-copy-id is unavailable, please
cat ~/.ssh/id_rsa.pub | ssh user@remote_server "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"