Skip to content
Home » How to copy ssh key to clipboard in mac

How to copy ssh key to clipboard in mac

Let’s start the discussion about How to copy ssh key to clipboard in mac in following methods.

Copy SSH key mac

In order to copy SSH key in mac run any of the below commands.

Use :

cat ~/.ssh/id_rsa.pub | pbcopy
cat ~/.ssh/id_rsa.pub | ssh @ 'cat >> .ssh/authorized_keys && echo "Public key successfully copied"'

I hope the strategies listed above work for you. Happy coding and come back again.

Similar Post : How to uninstall Docker from Ubuntu