Created
May 3, 2017 16:52
-
-
Save nqthqn/30c2660211b756d85c8c97c05619d2c6 to your computer and use it in GitHub Desktop.
WIP: Simple script used for provisioning remote servers
This file contains 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
# cat ~/.ssh/id_rsa.pub | ssh root@$1 'cat >> .ssh/authorized_keys' | |
# ssh-copy-id root@$1 | |
ssh root@$1 'curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' | |
cat ~/.vimrc | ssh root@$1 'cat > .vimrc' | |
cat ~/.tmux.conf | ssh root@$1 'cat > .tmux.conf' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment