📚 Full documentation and code:
GitHub: github.com/legout/vps-s...
Quick setup gist: gist.github.com/legout/efe26...
Star the repo if you find it useful! ⭐️
📚 Full documentation and code:
GitHub: github.com/legout/vps-s...
Quick setup gist: gist.github.com/legout/efe26...
Star the repo if you find it useful! ⭐️
- `user` → your desired username
- `your.vps` → your VPS IP/domain
- `~/.ssh/id_rsa.pub` → path to your SSH public key
4/7
- `user` → your desired username
- `your.vps` → your VPS IP/domain
- `~/.ssh/id_rsa.pub` → path to your SSH public key
4/7
$ export USER="user" && \
$ export PUBLIC_KEY=$(cat ~/.ssh/id_rsa.pub) && \
$ ssh [email protected] 'bash <(curl -s gist.githubusercontent.com/legout/efe26... | sed "s/NEW_USER=\"youruser\"/NEW_USER=\"'$USER'\"/; s|PUBLIC_KEY=\"your-public-key-content\"|SSH_PUBLIC_KEY=\"'$SSH_PUBLIC_KEY'\"|")'
4/7
$ export USER="user" && \
$ export PUBLIC_KEY=$(cat ~/.ssh/id_rsa.pub) && \
$ ssh [email protected] 'bash <(curl -s gist.githubusercontent.com/legout/efe26... | sed "s/NEW_USER=\"youruser\"/NEW_USER=\"'$USER'\"/; s|PUBLIC_KEY=\"your-public-key-content\"|SSH_PUBLIC_KEY=\"'$SSH_PUBLIC_KEY'\"|")'
4/7
1. Quick setup (using gist):
2. Automated deployment (using Github Action)
3/7
1. Quick setup (using gist):
2. Automated deployment (using Github Action)
3/7
• Non-root user with sudo
• SSH key authentication
• fail2ban
• UFW firewall
• Automatic security updates
• Docker ready
• Zero manual configuration
2/7
• Non-root user with sudo
• SSH key authentication
• fail2ban
• UFW firewall
• Automatic security updates
• Docker ready
• Zero manual configuration
2/7