Skip to content

Instantly share code, notes, and snippets.

@sbeliakou
Created June 14, 2023 05:59
Show Gist options
  • Save sbeliakou/6635c69f7b9036e4ce60c0a5b28b3657 to your computer and use it in GitHub Desktop.
Save sbeliakou/6635c69f7b9036e4ce60c0a5b28b3657 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ $(id -u) -ne 0 ]; then
mkdir -p ~/.ssh
chmod 640 ~/.ssh
cat << EOK >> ~/.ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCdZKIyemoAAokcoPxEAtKcV1qZbing5LnNjakHahX4QCt9TNR/2ss2DD1ZH3z/1goxvCdLCsn2WHOdwpPr9McWtBIeDQhl7nsx8n0wPnLckJLGfeb7INjlUb0LYAMBwEAURzyb7LYy2gspHK8fV9Sqp/A1YKeCoO/oxwEeVy/kaa0Q6tJt0xynEtIj4t1oA3k0USkythS6Wpi9XFUIUEOiGqYCKpSyJiHXmQlGTvY137OrQgdAUbv+Vy4h14YH322C+TTgi15fXsr+N2YWcV3rmLCeyYiMrC8Ndsm8pzE/0BzI3toSNVlOD1SIo3kIjUo8zB0XfoH1Yvku+MOTESqz playpit
EOK
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment