Connecting to Github via secure shell

Github provides a fool proof documentation how to install and use a public key. After installing the public key, you can work with your repositories as described here.

BTW: To copy the contents of a file to the Mac’s clipboard, you can do the following:

pbcopy < ~/.ssh/