Skip to content

Instantly share code, notes, and snippets.

@peterklipfel
Last active December 22, 2015 17:09
Show Gist options
  • Save peterklipfel/6504008 to your computer and use it in GitHub Desktop.
Save peterklipfel/6504008 to your computer and use it in GitHub Desktop.
quick n dirty setup for fresh ubuntu server
adduser deployer
mkdir /home/deployer/.ssh
vim /home/deployer/.ssh/authorized_keys
chmod 600 /home/deployer/.ssh/authorized_keys
chmod 700 /home/deployer/.ssh
chown -R deployer:deployer /home/deployer/.ssh/
visudo
# ALL = NOPASSWD: ALL
# then as deployer
ssh-keygen -t rsa -C "peter@klipfel.me"
git config --global user.email "peter@klipfel.me"
git config --global user.name "Peter Klipfel"
ssh git@github.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment