Skip to content

Instantly share code, notes, and snippets.

@theothermattm
Last active December 19, 2016 12:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theothermattm/8786339 to your computer and use it in GitHub Desktop.
Save theothermattm/8786339 to your computer and use it in GitHub Desktop.
Setting up keyauth fast
  • On each remote server:
mkdir -p ~/.ssh; touch ~/.ssh/authorized_keys; chmod -R 700 ~/.ssh;
cat .ssh/id_rsa.pub | ssh username@host "cat >> ~/.ssh/authorized_keys"

TODO: See if this works

ssh-copy-id 'user@remotehost' # Automatically installs your public key to the remote host (this is included in the openssh package)

From cli-magic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment