Skip to content

Instantly share code, notes, and snippets.

@jessuppi
Created January 11, 2020 08:36
Show Gist options
  • 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... [email protected]" 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... [email protected] > /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