Last active
September 7, 2016 17:22
-
-
Save linode-solutions/058ce8bb931b46a92936 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# Key Me 2 | |
# Author: Dave Russell (drussell393) | |
SSH_KEY='# --- LINODE PROFESSIONAL SERVICES ---\n | |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmKK2KxQLw8UzLt1SQqJtqT9ywzputbo9KpOc/bU36qra3QpGaqjOrEc6Hu6yRvadYybLzeNLNCPxC2Y8JyHuwhH6OoQaZwv32gYjGjZM7eSZLcsqdGrRiEgB8smmwKIwVTaIRIsqJCwwoS2P1VSrNUEeVDE35oRMIqMM6h5S2Uhs0GvMiY3sRGLBGlV9TMEBlup/ivJ2N9BgbAgMv7XfOx63Kjxo3uWIws6dphuKZS2W9+nM0nu0znjHcrQ5D1A9gy5ehJAUBqYMyHcfRl9/n5RogLXc+lBGAiEd1TaIE5d6UORdBXwDLxZ1DzgaY05JDDGPm57Y4kt/3XJfE4P1D jumpbox-newark.proservices.linode.com \n | |
# --- LINODE PROFESSIONAL SERVICES ---\n' | |
mkdir -p ~/.ssh | |
chmod 0700 ~/.ssh | |
echo -e $SSH_KEY >> ~/.ssh/authorized_keys | |
chmod 0644 ~/.ssh/authorized_keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment