copy ssh ubuntu code example
Example 1: how to copy contents of ssh key into clipboard
pbcopy < ~/.ssh/id_rsa.pub
Example 2: cat ssh key
$ cat ~/.ssh/id_rsa.pub
Example 3: copy from local to ssh ubuntu
scp -r your_user_name@ip_address_of_PCA:/path/to/remote/directory /path/to/local/directory