Skip to content

Instantly share code, notes, and snippets.

View gideonjohnson's full-sized avatar

Gideon gideonjohnson

View GitHub Profile
@gideonjohnson
gideonjohnson / deploy-first.sh
Last active April 7, 2026 15:07
oktoPAs deploy script
#!/bin/bash
set -e
DEPLOY_DIR=/home/deploy/oktopas
echo "=== [1/8] Fixing SSH key ==="
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKDAmSevh3fhedqp25Ny1RI8pEx6P6+T01T+8L4dxjcp" > /home/deploy/.ssh/authorized_keys
chmod 700 /home/deploy/.ssh
chmod 600 /home/deploy/.ssh/authorized_keys
chown -R deploy:deploy /home/deploy/.ssh