Generate SSH keys and automatically copying to your server

As a more secure way of authenticating to your SSH server, you can use private and public keys.  These keys are generated by ssh-keygen.

The following command will generate the keys and copy your public key to your server:

ssh-keygen; ssh-copy-id user@server.com