Skip to content

Instantly share code, notes, and snippets.

@jpukg
Forked from dewwwald/_README.md
Created November 13, 2021 17:20
Show Gist options
  • Save jpukg/b95ed3d11c22b7e234c2689c6dbee28b to your computer and use it in GitHub Desktop.
Save jpukg/b95ed3d11c22b7e234c2689c6dbee28b to your computer and use it in GitHub Desktop.
SSH

Add ssh key to host in one line

cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment