Last active
December 22, 2015 17:09
-
-
Save peterklipfel/6504008 to your computer and use it in GitHub Desktop.
quick n dirty setup for fresh ubuntu server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "[email protected]" | |
git config --global user.email "[email protected]" | |
git config --global user.name "Peter Klipfel" | |
ssh [email protected] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment