Created
January 11, 2020 08:36
-
-
Save jessuppi/6bc3452fba512389637671d55d01a759 to your computer and use it in GitHub Desktop.
SSH Authorization (Boot Script Example From Vultr)
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
#!/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