Copy SSH Public Key to clipboard WITHOUT newline appended
To copy your SSH Public Key cleanly to clipboard WITHOUT a trailing newline use

cat ~/.ssh/id_rsa.pub | tr -d '\n' | pbcopy


or (without cat)

tr -d '\n' &lt; ~/.ssh/id_rsa.pub | pbcopy