Skip to content

Instantly share code, notes, and snippets.

View ericjeker's full-sized avatar
👋

Eric Jeker ericjeker

👋
View GitHub Profile
@anthonynsimon
anthonynsimon / setup.sh
Last active April 18, 2025 12:03
setup.sh: secure an Ubuntu server for Kamal. More details: https://getdeploying.com/guides/secure-ubuntu-server
#!/usr/bin/env bash
# Applies common security measures for Ubuntu servers. Run it before doing the inital deploy with basecamp/kamal
#
# Afterwards, you'll only be able to SSH into the server as 'nonroot', eg. [email protected]
#
# So add this to your Kamal deploy.yml:
# ```
# ssh:
# user: nonroot