Create the new public and private keys, then rename and copy and delete the public key:
ssh-keygen
cd ~/.ssh/
cp id_rsa.pub authorized_keys
rm -rf id_rsa.pub
Copy the key cat id_rsa to your computer and then deleterm -rf id_rsa. Only with this key will you have access to the server.
The setting below is to extend bash's auto-complete functions.