Skip to content

Instantly share code, notes, and snippets.

@zubair1024
Last active May 17, 2020 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zubair1024/6116530d77d5dbbdd68063b9792c9c76 to your computer and use it in GitHub Desktop.
Save zubair1024/6116530d77d5dbbdd68063b9792c9c76 to your computer and use it in GitHub Desktop.
cat ~/.ssh/id_rsa.pub | \
  ssh pi@192.168.1.25 \
  "sudo mkdir /root/.ssh; sudo tee -a /root/.ssh/authorized_keys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment