Command Line Clipboard Copy From File in Mac OS X Mar 16th, 2011 | Comments 1 cat ~/.ssh/id_rsa.pub | pbcopy And more of public key ssh’ing cd ~/.ssh ssh-keygen -t rsa -C "my.email@domain.com" cat ~/.ssh/id_rsa.pub | pbcopy # scp somewhere or paste to github keys git config --global user.name "name" git config --global user.email email@m.com # may be proxy # git config --global http.proxy=http://proxy:8080 ssh -T git@github.com