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 December 3, 2025 22:21
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. nonroot@1.2.3.4
#
# So add this to your Kamal deploy.yml:
# ```
# ssh:
# user: nonroot