Skip to content

Instantly share code, notes, and snippets.

@jessuppi
Created January 11, 2020 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jessuppi/6bc3452fba512389637671d55d01a759 to your computer and use it in GitHub Desktop.
Save jessuppi/6bc3452fba512389637671d55d01a759 to your computer and use it in GitHub Desktop.
SSH Authorization (Boot Script Example From Vultr)
#!/bin/sh
# NOTE: This is an example that sets up SSH authorization. To use it, you'd need to replace "ssh-rsa AA... youremail@example.com" with your SSH public.
# You can replace this entire script with anything you'd like, there is no need to keep it
mkdir -p /root/.ssh
chmod 600 /root/.ssh
echo ssh-rsa AA... youremail@example.com > /root/.ssh/authorized_keys
chmod 700 /root/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment