What is “ssh-copy-id” Package?

Add a public key to a remote machine’s authorized_keys file
For more details: https://www.openssh.com/

Installation

  • Open Terminal by pressing command+space then type terminal and hit Enter key.
  • Install homebrew first.
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  • Install ssh-copy-id.
    brew install ssh-copy-id

Now, use ssh-copy-id!