Skip to content

Instantly share code, notes, and snippets.

@zimbatm zimbatm/
Last active Mar 23, 2016

What would you like to do?
Use github to get authorized keys and start ssh
# Fetches SSH keys from a github user and starts openssh
if [ -z "$user" ]; then
mkdir -m 0700 -p "$HOME/.ssh"
curl "$user.keys" > "$HOME/.ssh/authorized_keys"
systemctl start sshd

This comment has been minimized.

Copy link
Owner Author

commented Aug 1, 2015


curl -L | user=your_github_user sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.