Skip to content

Instantly share code, notes, and snippets.

@lawvs
Created August 5, 2018 14:44
Show Gist options
  • Save lawvs/8dc6a9088bd9a6a5d15fca12da37e61a to your computer and use it in GitHub Desktop.
Save lawvs/8dc6a9088bd9a6a5d15fca12da37e61a to your computer and use it in GitHub Desktop.
Adding public key
#!/bin/bash
mkdir ~/.ssh
touch ~/.ssh/authorized_keys
# vim ~/.ssh/authorized_keys
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment