Use this simple command to add your public key to Unix, Linux, and Mac SSH hosts. You can also add your public keys to remote hosts manually ... Some cloud or web services like GitHub might require ...
On remote Unix, Linux, or MacOS machines the public key needs to be placed into a file called ~/.ssh/authorized_keys file using your favorite text editor ... Some cloud or web services like github ...